buffer Tx packet

hong zhang henryzhang62 at yahoo.com
Fri May 22 15:35:30 UTC 2009


Thanks for information.
Also, would you please refer sample codes or some where similar so that I can have better understand? 


--- On Fri, 5/22/09, Jonathan Corbet <corbet at lwn.net> wrote:

> From: Jonathan Corbet <corbet at lwn.net>
> Subject: Re: buffer Tx packet
> To: "hong zhang" <henryzhang62 at yahoo.com>
> Cc: devel at linuxdriverproject.org
> Date: Friday, May 22, 2009, 8:14 AM
> 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