[dpdk-dev] [PATCH] mempool: accept user flags only
David Marchand
david.marchand at redhat.com
Wed Oct 20 09:53:36 CEST 2021
On Mon, Oct 18, 2021 at 10:36 AM Olivier Matz <olivier.matz at 6wind.com> wrote:
>
> 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>
Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
Rebased on top of mempool cleanup series, and applied.
Thanks.
--
David Marchand
More information about the dev
mailing list