]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx4/mlx4.c
net/mlx4: revert workaround for broken Verbs
[dpdk.git] / drivers / net / mlx4 / mlx4.c
index 8c20eea416df3717188b190cca502f33ab251a6e..4bc4a6ff5def059ee811dc71bad169a445070992 100644 (file)
@@ -728,6 +728,12 @@ RTE_INIT(rte_mlx4_pmd_init);
 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