numam-dpdk/drivers
Yongseok Koh 4423d4a112 net/mlx4: fix crash when configure is not called
Although uncommon, applications may destroy a device immediately after
probing it without going through dev_configure() first.

This patch addresses a crash which occurs when mlx4_dev_close() calls
mlx4_mr_release() due to an uninitialized entry in the private structure.

In addition MR cache init takes place on the device configuration.
When the device is re-configured multiple times, for example when
changing the number of queue on the flight, deadlock can happen.

This patch moved MR cache init from device configuration function to
probe function to make sure init only once.

Fixes: 9797bfcce1 ("net/mlx4: add new memory region support")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
2018-05-28 16:35:05 +02:00
..
baseband baseband/turbo_sw: shorten internal buffers names 2018-05-28 03:17:14 +02:00
bus bus/fslmc: fix export of unknown symbol 2018-05-28 03:23:16 +02:00
common
compress compress/isal: add ISA-L decomp functionality 2018-05-10 17:46:20 +01:00
crypto cryptodev: rename functions to get session size 2018-05-22 16:36:12 +02:00
event eventdev: add driver interface of crypto adapter 2018-05-10 14:07:37 +02:00
mempool mempool/bucket: add to meson build 2018-05-21 12:00:09 +02:00
net net/mlx4: fix crash when configure is not called 2018-05-28 16:35:05 +02:00
raw raw/ifpga/base: fix an error return 2018-05-21 16:13:06 +02:00
Makefile compress/isal: add skeleton ISA-L compression PMD 2018-05-10 17:46:20 +01:00
meson.build compress/isal: add skeleton ISA-L compression PMD 2018-05-10 17:46:20 +01:00