numam-dpdk/drivers/common
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
..
cnxk common/cnxk: fix memory leak 2021-11-11 16:12:23 +01:00
cpt common/cpt: fix KASUMI input length 2021-11-16 07:38:07 +01:00
dpaax dma/dpaa: introduce DPAA DMA driver skeleton 2021-11-10 13:48:38 +01:00
iavf common/iavf: support IPsec inline crypto 2021-10-29 04:15:31 +02:00
mlx5 common/mlx5: fix shared memory region ranges allocation 2021-11-23 21:36:11 +01:00
mvep drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
octeontx common/octeontx: enable build only on 64-bit Linux 2021-10-15 19:13:13 +02:00
octeontx2 common/octeontx2: update mailbox version to 0xb 2021-10-29 16:08:17 +02:00
qat common/qat: fix queue pair config overrun 2021-11-16 08:27:44 +01:00
sfc_efx common/sfc_efx/base: support MAC address edit actions in MAE 2021-11-17 14:10:08 +01:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00