numam-dpdk/drivers/net/mlx5
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
..
linux common/mlx5: split PCI relaxed ordering for read and write 2020-11-04 19:16:24 +01:00
meson.build net/mlx5: support flow hit action for aging 2020-11-03 23:35:07 +01:00
mlx5_defs.h common/mlx5: share UAR allocation routine 2020-11-14 10:56:30 +01:00
mlx5_devx.c net/mlx5: fix SQ resources release in error flow 2020-11-13 16:26:54 +01:00
mlx5_devx.h net/mlx5: share Tx control code 2020-10-09 13:17:42 +02:00
mlx5_ethdev.c net/mlx: do not enforce RSS hash offload 2020-11-03 23:35:04 +01:00
mlx5_flow_age.c net/mlx5: fix UAR used by ASO queues 2020-11-14 10:56:30 +01:00
mlx5_flow_dv.c net/mlx5: allow age modes combination 2020-11-03 23:35:07 +01:00
mlx5_flow_meter.c net/mlx5: make meter action thread safe 2020-11-03 23:35:04 +01:00
mlx5_flow_verbs.c net/mlx5: make Rx queue thread safe 2020-11-03 23:35:04 +01:00
mlx5_flow.c common/mlx5: split PCI relaxed ordering for read and write 2020-11-04 19:16:24 +01:00
mlx5_flow.h net/mlx5: support shared age action 2020-11-03 23:35:07 +01:00
mlx5_mac.c net/mlx5: remove unused includes 2020-09-18 18:55:06 +02:00
mlx5_mr.c common/mlx5: free MR resource on device DMA unmap 2020-11-13 16:26:54 +01:00
mlx5_mr.h common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_rss.c net/mlx5: fix RSS RETA reset on start 2020-09-18 18:55:11 +02:00
mlx5_rxmode.c common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_rxq.c net/mlx5: fix Rx queue object allocation with MPRQ 2020-11-13 16:26:53 +01:00
mlx5_rxtx_vec_altivec.h net/mlx5: fix CQE decompression for Arm and PowerPC 2020-11-03 23:35:08 +01:00
mlx5_rxtx_vec_neon.h net/mlx5: fix CQE decompression for Arm and PowerPC 2020-11-03 23:35:08 +01:00
mlx5_rxtx_vec_sse.h net/mlx5: support flow tag and packet header miniCQEs 2020-11-03 23:35:07 +01:00
mlx5_rxtx_vec.c net/mlx5: implement vectorized MPRQ burst 2020-11-03 23:24:25 +01:00
mlx5_rxtx_vec.h net/mlx5: implement vectorized MPRQ burst 2020-11-03 23:24:25 +01:00
mlx5_rxtx.c net/mlx5: support flow tag and packet header miniCQEs 2020-11-03 23:35:07 +01:00
mlx5_rxtx.h net/mlx5: support flow tag and packet header miniCQEs 2020-11-03 23:35:07 +01:00
mlx5_stats.c net/mlx5: fix xstats reset reinitialization 2020-11-03 23:24:25 +01:00
mlx5_trigger.c net/mlx5: add conditional hairpin auto bind 2020-11-03 23:35:04 +01:00
mlx5_txpp.c net/mlx5: use C11 atomics in packet scheduling 2020-11-03 23:35:05 +01:00
mlx5_txq.c net/mlx5: use C11 atomics for RxQ/TxQ refcounts 2020-11-03 23:35:04 +01:00
mlx5_utils.c net/mlx5: remove unused hash list operations 2020-11-03 23:35:05 +01:00
mlx5_utils.h net/mlx5: remove unused hash list operations 2020-11-03 23:35:05 +01:00
mlx5_vlan.c net/mlx5: remove Rx queue object type field 2020-10-09 13:17:42 +02:00
mlx5.c net/mlx5: allow age modes combination 2020-11-03 23:35:07 +01:00
mlx5.h net/mlx5: fix UAR used by ASO queues 2020-11-14 10:56:30 +01:00
rte_pmd_mlx5.h net/mlx5: add flow sync API 2020-11-03 23:35:04 +01:00
version.map net/mlx5: add flow sync API 2020-11-03 23:35:04 +01:00