[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: skb->truesize > sk->rcvbuf == Dropped packets
>> I can implement one solution by copying the received packets into skb's 

>> with the correct length, but that eliminates the performance gains from

>> simply swapping buffers around (and would definately mean no

> Generally it is a win to copy rather than swap buffers when the frame
> not occupy most of the buffer. Most traffic is very small or MTU sized
> frames (and on TR of course ethernet not TR mtu frames are popular)

Any suggestions on heuristics for this ?
Say maybe copy if skb->len <= eth_max_mtu, skb->len <= skb->truesize * .5,
or just copy the packets no matter what size.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.042 / U:1.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site