buffer Tx packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux