[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Automatic DMA pbuf ring replenish
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Automatic DMA pbuf ring replenish |
Date: |
Tue, 01 Nov 2011 12:23:15 +0000 |
On Sat, 2011-10-29 at 11:23 +0200, Timmy Brolin wrote:
> When writing a DMA based ethernet driver, a function must be written
> to periodically allocate POOL pbufs and put them in the Rx DMA buffer
> descriptor ring.
>
> I think this could be made a bit more efficient.
> What if I make the Rx DMA buffer descriptor ring large enough to hold
> all POOL pbufs. At start-up all POOL pbufs are allocated and put in
> the Rx DMA ring.
> pbuf_free() is modified so that whenever a POOL pbuf is freed it is
> immediately put in the Rx DMA ring.
Worth trying. I think it is based on the assumption that pool pbufs are
only used for DMA RX. I'm not sure if this assumption holds on all
systems.
Kieran
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [lwip-users] Automatic DMA pbuf ring replenish,
Kieran Mansley <=