[dpdk-dev] [PATCH] mempool: accept user flags only

Olivier Matz olivier.matz at 6wind.com
Mon Oct 18 10:35:57 CEST 2021


On Mon, Oct 18, 2021 at 10:26:35AM +0200, David Marchand wrote:
> As reported by Dmitry, MEMPOOL_F_POOL_CREATED is a flag only manipulated
> internally.
> This flag is not supposed to be requested from an application and would
> probably result in an incorrect behavior if an application did pass it.
> 
> Other internal flags may be introduced later.
> 
> Rework the check and export a mask of valid user flags for use in the
> unit test.
> 
> Fixes: b240af8b10f9 ("mempool: enforce valid flags at creation")
> 
> Reported-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Acked-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list