numam-dpdk/lib/librte_mempool
Olivier Matz daeb7c7f41 mempool: fix panic on dump or audit
When doing a mempool dump or an audit, the application can panic because
the length of the cache is greater than the flush threshold, which is
seen as a fatal error. But this can temporarily happen when the mempool
is in use.

Fix the panic condition to abort only when the cache length is greater
than the array.

Fixes: ea5dd2744b ("mempool: cache optimisations")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-02-05 17:40:23 +01:00
..
mempool_trace_points.c trace: simplify trace point registration 2020-07-05 21:34:21 +02:00
meson.build mempool: remove v20 ABI compatibility 2020-10-06 12:19:21 +02: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: add tracepoints 2020-04-23 15:40:11 +02:00
rte_mempool_trace_fp.h mempool: add tracepoints 2020-04-23 15:40:11 +02:00
rte_mempool_trace.h trace: add size_t field emitter 2020-06-15 19:27:00 +02:00
rte_mempool.c mempool: fix panic on dump or audit 2021-02-05 17:40:23 +01:00
rte_mempool.h mempool: promote some experimental functions as stable 2020-10-06 12:19:21 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00