[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100702.234645.104076220.davem@davemloft.net>
Date: Fri, 02 Jul 2010 23:46:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: sebastian@...akpoint.cc, netdev@...r.kernel.org, tglx@...utronix.de
Subject: Re: Generic rx-recycling and emergency skb pool
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sat, 03 Jul 2010 08:23:25 +0200
> Maybe its time to provide new API, so that a driver can build an skb at
> the time RX interrupt is handled, not at the time the rx ring buffer is
> renewed. RX ring should only provide the data part to NIC, and skb
> should be built when NIC delivers the frame, so that we provide to IP
> stack a real hot skb.
Drivers do this already, and in fact I am very sure I'm mentioned this
to you at least other time in the past, and one such driver is NIU :-)
It's trivial to do with devices which work on power-of-2 chopped up
pages. In fact I'm surprised that RX buffer management scheme is
not more prevalent in network devices.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists