lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Automatic Rx DMA ring replenish


From: address@hidden
Subject: [lwip-users] Automatic Rx DMA ring replenish
Date: Sun, 30 Oct 2011 09:29:17 +0100

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.

This should improve performance, as well as simplify the ethernet driver a bit.

It is a minor modification to pbuf_free().

Thoughts?

/Timmy Brolin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]