Re: New net features for added performance

From: Michael Richardson (
Date: Sat Feb 24 2001 - 20:55:08 EST

>>>>> "Jeff" == Jeff Garzik <> writes:
    Jeff> 1) Rx Skb recycling. It would be nice to have skbs returned to the
    Jeff> driver after the net core is done with them, rather than have netif_rx
    Jeff> free the skb. Many drivers pre-allocate a number of maximum-sized skbs
    Jeff> into which the net card DMA's data. If netif_rx returned the SKB
    Jeff> instead of freeing it, the driver could simply flip the DescriptorOwned
    Jeff> bit for that buffer, giving it immediately back to the net card.

    Jeff> Disadvantages?

  netif_rx() would have to copy the buffer.

  Right now, it just puts it on the queue towards the BH. For it to return
the skb would require that all processing occur inside of netif_rx() (a la BSD),
or that it copy the buffer.
    Jeff> 3) Slabbier packet allocation. Even though skb allocation is decently
    Jeff> fast, you are still looking at an skb buffer head grab and a
  I think that if you had this, and you also returned skb's to this list on
a per device basis (change skb->free, I think) instead of to the general
pool, you probably eliminate your request #1.

] Train travel features AC outlets with no take-off restrictions|gigabit is no[
] Michael Richardson, Solidum Systems Oh where, oh where has|problem with[
] the little fishy gone?|PAX.port 1100[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [
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

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:09 EST