numam-dpdk/drivers/common
Dmitry Kozlyuk 8ad97e4b32 common/mlx5: fix multi-process mempool registration
The `mp_cb_registered` flag shared between all processes
was used to ensure that for any IB device (MLX5 common device)
mempool event callback was registered only once
and mempools that had been existing before the device start
were traversed only once to register them.
Since mempool callback registrations have become process-private,
callback registration must be done by every process.
The flag can no longer reflect the state for any single process.
Replace it with a registration counter to track
when no more callbacks are registered for the device in any process.
It is sufficient to only register pre-existing mempools
in the primary process because it is the one that starts the device.

Fixes: 690b2a88c2 ("common/mlx5: add mempool registration facilities")
Cc: stable@dpdk.org

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2022-10-10 16:38:15 +02:00
..
cnxk crypto/cnxk: support fixed point multiplication 2022-10-07 19:46:11 +02:00
cpt common/cpt: fix build with GCC 12 2022-06-21 20:04:49 +02:00
dpaax replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
iavf common/iavf: support flow subscription 2022-09-07 20:33:26 +02:00
mlx5 common/mlx5: fix multi-process mempool registration 2022-10-10 16:38:15 +02:00
mvep drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
octeontx eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
qat crypto/qat: support SM3 hash algorithm 2022-10-02 20:33:24 +02:00
sfc_efx common/sfc_efx/base: use avail and used terms for indexes 2022-10-04 17:22:56 +02:00
meson.build drivers: remove octeontx2 drivers 2022-01-12 15:36:32 +01:00