numam-dpdk/drivers/common
Gregory Etelson aeca11f82a common/mlx5: fix shared mempool subscription
MLX5 PMD counted each mempool subscribe invocation. The PMD expected
that the mempool subscription will be deleted after the mempool
counter dropped to 0. However, current PMD design unsubscribes mempool
callbacks only once.
As the result, the PMD destroyed mlx5_common_device but kept
shared RX subscription callback. EAL tried to activate that callback
and crashed.

The patch removes mempool subscriptions counter.
The PMD registers mempool subscription once only. An attempt
to register existing subscription returns EEXIST.
Also, the PMD expects to remove subscription when mempool unsubscribe
was activated.

Fixes: 8ad97e4b32 ("common/mlx5: fix multi-process mempool registration")
Cc: stable@dpdk.org

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-11-10 18:15:47 +01:00
..
cnxk common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +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
idpf common/idpf: introduce common library 2022-10-31 11:45:54 +01:00
mlx5 common/mlx5: fix shared mempool subscription 2022-11-10 18:15:47 +01: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 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
sfc_efx common/sfc_efx/base: use avail and used terms for indexes 2022-10-04 17:22:56 +02:00
meson.build common/idpf: introduce common library 2022-10-31 11:45:54 +01:00