Dropping one packet in a coalesced skb
Vimal
j.vimal at gmail.com
Wed May 2 12:17:20 EDT 2012
Hi,
I have LSO enabled on my machine, and hence a single skb can
(possibly) be multiple packets on the wire. I am writing a kernel
module that tries dropping packets. Is there a way to drop just one
1500B sized TCP packet inside an skb that can be a 64KB TCP segment?
This segment has about 40 packets due to LSO, and I don't want to drop
all of them; just a few (2--3) packets.
Can the effect be achieved if I modify skb_shinfo(skb)->gso_segs, or nr_frags?
Thanks,
--
Vimal
More information about the Kernelnewbies
mailing list