[PATCH v2 4/4] net/ark: improve Rx queue recovery after mbuf exhaustion

Stephen Hemminger stephen at networkplumber.org
Sat Sep 13 18:26:43 CEST 2025


On Wed, 10 Sep 2025 14:57:20 -0400
Ed Czeck <ed.czeck at atomicrules.com> wrote:

> use 4-K page aligned buffers to reduce PCIe requests
> reduce message spew
> attempt to allocate smaller chunks of buffers during starvation
> 
> Signed-off-by: Ed Czeck <ed.czeck at atomicrules.com>
> ---
> v2:
> - reduced message to single line.
> - Added comments on buffer alignment.  PCIe devices deal with page
> size of 4096 bytes.  By aligning this buffer to a 4K boundary, we
> will reduce the number of PCIe read requests.

It would be clearer if there was a #define for the magic 4096 size.
Is the IOMMU page size? The PCI devices themselves don't usually
have page visibility.

Alignment in this case is really a workaround for "don't cross
the boundary". It looks like the rte_malloc library doesn't have
better way to express that.


More information about the dev mailing list