(05.12.08 kl.10:56) Eric Dumazet skrev följande till Robert Olsson:
Robert Olsson a écrit :
David S. Miller writes:
This will lead to an extra alloc in case of copybreak but it could
possible to avoid this with some function giving copybreak feedback to
driver i.e via
netif_receive_skb_cpybrk() which tells driver if skb is consumed or not.
One problem is that some drivers have optimized copybreak : Because the NIC
can recycle the buffer, I believe some costly operations can be avoided.
Yes! This is exactly why we need feedback to the driver.
If the skb is not consumed the driver can optimize ring usage in the same
way as before.
The good thing is that the decision on when to do copybreak is taken when
more information is available.
Cheers,
Jens
-----------------------------------------------------------------------
'This mail automatically becomes portable when carried.'
-----------------------------------------------------------------------
Jens Låås Email: [EMAIL PROTECTED]
Department of Computer Services, SLU Phone: +46 18 67 35 15
Vindbrovägen 1
P.O. Box 7079
S-750 07 Uppsala
SWEDEN
-----------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html