buffer Tx packet
Jonathan Corbet
corbet at lwn.net
Fri May 22 13:14:55 UTC 2009
On Thu, 21 May 2009 21:57:47 -0700 (PDT)
hong zhang <henryzhang62 at yahoo.com> wrote:
> I need help on how to buffer Tx packets in network driver. Point is
> kernel transmits a packet in skb and driver will free it after packet is
> out to FIFO on chip. Now driver buffers a few packets and then sends them
> out. Should driver allocate extra memory for the packets needs buffered?
If I understand your question correctly, there is nothing special that you
need to do. The driver owns the SKB once it's passed in to your transmit
function; you are free to hang onto it for a while if that's what you need
to do. You'll want to take care not to stop the queue while holding
packets, but I assume you've thought of that.
jon
More information about the devel
mailing list