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 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_mempool_ops_default.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_mempool_ops.c mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
rte_mempool_trace_fp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_mempool_trace.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
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