numam-dpdk/drivers
Bing Zhao 8947eebc99 common/mlx5: fix shared memory region ranges allocation
Memory regions (MRs) were allocated in one chunk of memory with a
mempool registration object. However, MRs can be reused among
different mempool registrations.

When the registration that allocated the MRs originally was
destroyed, the dangling pointers to the MRs could be left in other
registrations sharing these MRs.

Splitting the memory allocation of registration structure and MRs in
this commit solves this pointer reference issue.

Fixes: 690b2a88c2 ("common/mlx5: add mempool registration facilities")

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Reviewed-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
2021-11-23 21:36:11 +01:00
..
baseband drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bus bus: fix device iterator match from arguments 2021-11-24 15:11:42 +01:00
common common/mlx5: fix shared memory region ranges allocation 2021-11-23 21:36:11 +01:00
compress common/mlx5: fix redundant field in MR control structure 2021-11-17 10:42:20 +01:00
crypto drivers/crypto: return error for not supported SA lifetime 2021-11-23 19:48:28 +01:00
dma dma/dpaa: support statistics 2021-11-10 13:48:38 +01:00
event event/dlb2: fix delayed pop test in selftest 2021-11-16 08:02:13 +01:00
gpu gpu/cuda: set rte_errno 2021-11-24 12:00:42 +01:00
mempool mempool/cnxk: postpone devargs parsing 2021-10-29 16:09:25 +02:00
net net/mlx5: fix reference count on detached indirect action 2021-11-23 17:57:19 +01:00
raw raw/cnxk_bphy: add header includes 2021-11-03 16:15:13 +01:00
regex common/mlx5: fix redundant field in MR control structure 2021-11-17 10:42:20 +01:00
vdpa vdpa/mlx5: fix mkey creation check 2021-11-16 11:21:18 +01:00
meson.build gpudev: introduce GPU device class library 2021-11-08 17:20:52 +01:00