common/mlx5: fix memory region leak
authorMichael Baum <michaelba@nvidia.com>
Mon, 28 Jun 2021 15:06:14 +0000 (18:06 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:22 +0000 (22:09 +0200)
commit2f6c2adbe550ea95a0f73c4f9a9cc5da890b9bf2
treea3e4dcb6c3d9b22e8eddbbb4da785151a83b79c1
parent3057f337792ad71a65b8c5aa1f63a556837c9472
common/mlx5: fix memory region leak

All the mlx5 drivers using MRs for data-path must unregister the mapped
memory when it is freed by the dpdk process.

Currently, only the net/eth driver unregisters MRs in free event.

Move the net callback handler from net driver to common.

Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common_mr.c
drivers/common/mlx5/mlx5_common_mr.h
drivers/common/mlx5/version.map
drivers/net/mlx5/mlx5_mr.c