22/09/2026 17:52, Stephen Hemminger:
> Memzone names are limited to 31 characters, and ring, mempool and
> stack names lose the length of their prefixes on top of that.
> A mempool name is limited to 25 characters, which leaves little room
> for libraries such as rib and fib that derive names from the name
> given by the application.
> 
> Increase RTE_MEMZONE_NAMESIZE to 64. The derived ring, mempool,
> stack and RCU defer queue sizes follow.
> 
> Reorder struct rte_ring and struct rte_mempool so the larger name
> does not push datapath fields into another cache line.
> 
> For rte_ring, flags and the size fields come first, followed by the
> memzone pointer and the name. The cache alignment moves from the
> first field to the structure itself. struct rte_ring grows by one
> cache line.
> 
> For rte_mempool the fields used in the datapath are gathered at the
> start: pool_data/pool_id, local_cache, ops_index and cache_size.
> The remaining fields, along with pool_config, mz and name, follow.
> Previously local_cache and ops_index were in the second cache line.
> struct rte_mempool stays 192 bytes.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  doc/guides/rel_notes/release_26_11.rst | 21 +++++++++++++++++++
>  lib/eal/include/rte_memzone.h          |  2 +-
>  lib/mempool/rte_mempool.h              | 29 +++++++++++++-------------
>  lib/ring/rte_ring_core.h               |  9 ++++----
>  4 files changed, 41 insertions(+), 20 deletions(-)

Please rebase on top of mempool changes in main.



Reply via email to