[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: skb->truesize > sk->rcvbuf == Dropped packets writes:
> 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.

Pick a percentage of "acceptable waste" (ie. ratio of truesize to

We know that cutoff values ~200 work for ethernet, for example.

On the topic of these checks that drop the packets, just so there
there is no misunderstanding. We can't remove them else users
could consume memory in a basically uncontrolled manner.

David S. Miller
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.041 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site