numam-dpdk/drivers/common
Jiawei Wang 992e6df3da common/mlx5: free MR resource on device DMA unmap
mlx5 PMD created the MR (Memory Region) resource on the
mlx5_dma_map call to make the memory available for DMA
operations. On the mlx5_dma_unmap call the MR resource
was not freed but inserted to MR Free list for further
garbage collection.
Actual MR resource destroying happened on device stop
call. That caused the runtime out of memory in case of
application performed multiple DMA map/unmap calls.

The fix immediately frees the MR resource on mlx5_dma_unmap
call not engaging the list. The export for mlx5_mr_free
function from common PMD part is added as well.

Fixes: 989e999d93 ("net/mlx5: support PCI device DMA map and unmap")
Cc: stable@dpdk.org

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2020-11-13 16:26:54 +01:00
..
cpt build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
dpaax build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
iavf build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
mlx5 common/mlx5: free MR resource on device DMA unmap 2020-11-13 16:26:54 +01:00
mvep build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
octeontx build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
octeontx2 drivers: disable OCTEON TX2 in 32-bit build 2020-11-12 16:39:10 +01:00
qat common/qat: add missing kmod dependency info 2020-11-02 09:24:41 +01:00
sfc_efx net/sfc: support aarch64 architecture 2020-11-03 23:35:06 +01:00
meson.build build: standardize component names and defines 2020-10-19 22:15:34 +02:00