numam-dpdk/drivers
Dmitry Kozlyuk e4c402afc1 common/mlx5: fix MPRQ mempool registration
Mempool registration code had a wrong assumption that it is always
dealing with packet mempools and always called rte_pktmbuf_priv_flags(),
which returned a random value for different types of mempools.
In particular, it could consider MPRQ mempools as having externally
pinned buffers, which is wrong.
Packet mempools cannot be reliably recognized, but it is sufficient to
check that the mempool is not a packet one, so it cannot have externally
pinned buffers.
Compare mempool private data size to that of packet mempools to check.

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

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-11-16 16:45:21 +01:00
..
baseband drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bus bus/fslmc: remove unused device count 2021-11-16 13:01:52 +01:00
common common/mlx5: fix MPRQ mempool registration 2021-11-16 16:45:21 +01:00
compress common/mlx5: fix redundant field in MR control structure 2021-11-17 10:42:20 +01:00
crypto common/mlx5: fix redundant field in MR control structure 2021-11-17 10:42:20 +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: introduce CUDA driver 2021-11-16 17:47:52 +01:00
mempool mempool/cnxk: postpone devargs parsing 2021-10-29 16:09:25 +02:00
net common/mlx5: fix MPRQ mempool registration 2021-11-16 16:45:21 +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