Dropping one packet in a coalesced skb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux