numam-dpdk/lib/mempool
David Marchand afdaa60795 mempool: accept user flags only
As reported by Dmitry, RTE_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.

At least one other internal flag has been added recently and more may be
introduced later.

Rework the check and export a mask of valid user flags for use in the
unit test.

Fixes: b240af8b10 ("mempool: enforce valid flags at creation")

Reported-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-10-20 10:03:55 +02:00
..
mempool_trace_points.c
meson.build
rte_mempool_ops_default.c
rte_mempool_ops.c mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
rte_mempool_trace_fp.h
rte_mempool_trace.h
rte_mempool.c mempool: accept user flags only 2021-10-20 10:03:55 +02:00
rte_mempool.h mempool: accept user flags only 2021-10-20 10:03:55 +02:00
version.map mempool: add event callbacks 2021-10-19 16:35:16 +02:00