numam-dpdk/drivers/net/mlx4
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
..
Makefile net/mlx4: remove memory region support 2018-05-14 22:31:51 +01:00
mlx4_ethdev.c net/mlx4: refactor RSS conversion functions 2018-05-23 00:35:01 +02:00
mlx4_flow.c net/mlx4: refactor RSS conversion functions 2018-05-23 00:35:01 +02:00
mlx4_flow.h net/mlx4: refactor RSS conversion functions 2018-05-23 00:35:01 +02:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_intr.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_mr.c net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
mlx4_mr.h net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
mlx4_prm.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_rxq.c net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
mlx4_rxtx.c net/mlx4: fix shifts of signed values in Tx 2018-05-17 19:06:29 +02:00
mlx4_rxtx.h net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
mlx4_txq.c net/mlx4: fix shifts of signed values in Tx 2018-05-17 19:06:29 +02:00
mlx4_utils.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_utils.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4.c net/mlx4: fix crash when configure is not called 2018-05-28 16:35:05 +02:00
mlx4.h net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
rte_pmd_mlx4_version.map mlx4: move to drivers/net/ 2015-05-22 16:06:22 +02:00