[dpdk-dev v1] mempool: double cache max size using ABI-neutral struct compaction

Morten Brørup mb at smartsharesystems.com
Fri Aug 21 08:25:18 CEST 2026


> index 50d958c7c6..61dfe386c0 100644
> --- a/lib/mempool/rte_mempool.h
> +++ b/lib/mempool/rte_mempool.h
> @@ -106,13 +106,8 @@ struct __rte_cache_aligned rte_mempool_cache {
>  #endif
>  	/**
>  	 * Cache objects
> -	 *
> -	 * Note:
> -	 * Cache is allocated at double size for API/ABI compatibility
> purposes only.
> -	 * When reducing its size at an API/ABI breaking release,
> -	 * remember to add a cache guard after it.
>  	 */
> -	alignas(RTE_CACHE_LINE_SIZE) void
> *objs[RTE_MEMPOOL_CACHE_MAX_SIZE * 2];
> +	alignas(RTE_CACHE_LINE_SIZE) void
> *objs[RTE_MEMPOOL_CACHE_MAX_SIZE];

This change has already been addressed.
Please review this patch:
https://patchwork.dpdk.org/project/dpdk/patch/20260806154506.1532375-1-mb@smartsharesystems.com/



More information about the dev mailing list