numam-dpdk/app
Dmitry Kozlyuk da2b9cb25e mempool: add event callbacks
Data path performance can benefit if the PMD knows which memory it will
need to handle in advance, before the first mbuf is sent to the PMD.
It is impractical, however, to consider all allocated memory for this
purpose. Most often mbuf memory comes from mempools that can come and
go. PMD can enumerate existing mempools on device start, but it also
needs to track creation and destruction of mempools after the forwarding
starts but before an mbuf from the new mempool is sent to the device.

Add an API to register callback for mempool life cycle events:
* rte_mempool_event_callback_register()
* rte_mempool_event_callback_unregister()
Currently tracked events are:
* RTE_MEMPOOL_EVENT_READY (after populating a mempool)
* RTE_MEMPOOL_EVENT_DESTROY (before freeing a mempool)
Provide a unit test for the new API.
The new API is internal, because it is primarily demanded by PMDs that
may need to deal with any mempools and do not control their creation,
while an application, on the other hand, knows which mempools it creates
and doesn't care about internal mempools PMDs might create.

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-10-19 16:35:16 +02:00
..
pdump net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
proc-info app/procinfo: add device registers dump 2021-07-30 18:45:49 +02:00
test mempool: add event callbacks 2021-10-19 16:35:16 +02:00
test-acl app/acl: add script to automate testing 2021-07-30 18:34:35 +02:00
test-bbdev bbdev: add capability for 4G CB CRC drop 2021-10-08 21:31:07 +02:00
test-cmdline
test-compress-perf
test-crypto-perf test/crypto-perf: test asymmetric crypto throughput 2021-09-28 08:43:57 +02:00
test-eventdev
test-fib
test-flow-perf
test-pipeline app/testpmd: build on Windows 2021-07-02 19:03:03 +02:00
test-pmd ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
test-regex
test-sad
meson.build