[dpdk-dev] [PATCH v2 2/6] mempool: add namespace prefix to flags

Olivier Matz olivier.matz at 6wind.com
Tue Oct 19 18:13:53 CEST 2021


On Tue, Oct 19, 2021 at 01:08:41PM +0300, Andrew Rybchenko wrote:
> Fix the mempool flgas namespace by adding an RTE_ prefix to the name.

nit: flgas -> flags

> The old flags remain usable, to be deprecated in the future.
> 
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>

(...)

> @@ -777,12 +777,12 @@ rte_mempool_cache_free(struct rte_mempool_cache *cache)
>  	rte_free(cache);
>  }
>  
> -#define MEMPOOL_KNOWN_FLAGS (MEMPOOL_F_NO_SPREAD \
> -	| MEMPOOL_F_NO_CACHE_ALIGN \
> -	| MEMPOOL_F_SP_PUT \
> -	| MEMPOOL_F_SC_GET \
> -	| MEMPOOL_F_POOL_CREATED \
> -	| MEMPOOL_F_NO_IOVA_CONTIG \
> +#define MEMPOOL_KNOWN_FLAGS (RTE_MEMPOOL_F_NO_SPREAD \
> +	| RTE_MEMPOOL_F_NO_CACHE_ALIGN \
> +	| RTE_MEMPOOL_F_SP_PUT \
> +	| RTE_MEMPOOL_F_SC_GET \
> +	| RTE_MEMPOOL_F_POOL_CREATED \
> +	| RTE_MEMPOOL_F_NO_IOVA_CONTIG \
>  	)

I guess MEMPOOL_KNOWN_FLAGS was kept as is on purpose.



More information about the dev mailing list