numam-dpdk/lib/librte_mempool
Olivier Matz f159c61c35 mempool: fix anonymous populate
The documentation says that a negative errno is returned on error, but
in most places that's not the case.

Fix the documentation and the exceptions in code. The second one
(return from populate_virt) also fixes a memory leak.

Note that testpmd was using the function correctly.

Fixes: aa10457eb4 ("mempool: make mempool populate and free api public")
Fixes: 6780f72fb8 ("mempool: populate with anonymous memory")
Fixes: 66e7ba0bad ("mempool: ensure mempool is initialized before populating")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2020-01-20 12:12:20 +01:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_mempool_ops_default.c mempool: use specific macro for object alignment 2019-11-06 11:34:19 +01:00
rte_mempool_ops.c mempool: reduce wasted space on populate 2019-11-06 11:11:10 +01:00
rte_mempool_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
rte_mempool.c mempool: fix anonymous populate 2020-01-20 12:12:20 +01:00
rte_mempool.h mempool: fix anonymous populate 2020-01-20 12:12:20 +01:00