Re: skb->truesize > sk->rcvbuf == Dropped packets

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 3 May 2001 23:51:05 +0100 (BST)


> 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 zero-copy).

Generally it is a win to copy rather than swap buffers when the frame does
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)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/