numam-dpdk/lib/mempool
Dmitry Kozlyuk 6fda3ff6f0 mempool: fix non-IO flag inference
When mempool had been created with RTE_MEMPOOL_F_NO_IOVA_CONTIG flag
but later populated with valid IOVA, RTE_MEMPOOL_F_NON_IO was unset,
while it should be kept. The unit test did not catch this
because rte_mempool_populate_default() it used was populating
with RTE_BAD_IOVA.

Keep setting RTE_MEMPOOL_NON_IO at an empty mempool creation
and add an assert for it in the unit test (remove the separate case).
Do not reset the flag if RTE_MEMPOOL_F_ON_IOVA_CONTIG is set.

Fixes: 11541c5c81 ("mempool: add non-IO flag")

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2021-10-25 16:52:56 +02:00
..
mempool_trace_points.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build mempool: add telemetry endpoint 2021-10-22 22:40:59 +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: fix non-IO flag inference 2021-10-25 16:52:56 +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