summaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/mlx4.c
diff options
context:
space:
mode:
authorMatan Azrad <matan@mellanox.com>2017-11-29 09:21:26 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commitc2b3dba84ad319003df04a5a9fa163a953224e83 (patch)
tree7dc17519ce159b53943ec6b2d663d42e35e87222 /drivers/net/mlx4/mlx4.c
parent03e87e6e26330ed8def8a6b1b093d27c1c8080cb (diff)
downloaddpdk-c2b3dba84ad319003df04a5a9fa163a953224e83.zip
dpdk-c2b3dba84ad319003df04a5a9fa163a953224e83.tar.gz
dpdk-c2b3dba84ad319003df04a5a9fa163a953224e83.tar.xz
net/mlx4: revert workaround for broken Verbs
This workaround was needed to properly handle device removal with old Mellanox OFED releases that are not supported by this PMD anymore. Starting from rdma-core v16 this removal issue shouldn't happen when setting MLX4_DEVICE_FATAL_CLEANUP environment variable to 1. Set the aforementioned variable to 1. Reverts: 5f4677c6ad5e ("net/mlx4: workaround verbs error after plug-out") Cc: stable@dpdk.org Signed-off-by: Matan Azrad <matan@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx4/mlx4.c')
-rw-r--r--drivers/net/mlx4/mlx4.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c
index 8c20eea..4bc4a6f 100644
--- a/drivers/net/mlx4/mlx4.c
+++ b/drivers/net/mlx4/mlx4.c
@@ -729,6 +729,12 @@ static void
rte_mlx4_pmd_init(void)
{
/*
+ * MLX4_DEVICE_FATAL_CLEANUP tells ibv_destroy functions we
+ * want to get success errno value in case of calling them
+ * when the device was removed.
+ */
+ setenv("MLX4_DEVICE_FATAL_CLEANUP", "1", 1);
+ /*
* RDMAV_HUGEPAGES_SAFE tells ibv_fork_init() we intend to use
* huge pages. Calling ibv_fork_init() during init allows
* applications to use fork() safely for purposes other than