[dpdk-dev] [PATCH v2 4/6] net/mlx5: remove verbs fork check

Xueming Li xuemingl at mellanox.com
Fri Sep 15 17:59:58 CEST 2017


Verbs API prohibited resources inheritance by default, this further
disabled PMD forked secondary process that replis on memory inherited
from parent process.

This patch removes verbs fork check to enable DPDK forked process.

Signed-off-by: Xueming Li <xuemingl at mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
---
 drivers/net/mlx5/mlx5.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 11490d4..e124a14 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -977,16 +977,8 @@ struct mlx5_args {
 {
 	/* Build the static table for ptype conversion. */
 	mlx5_set_ptype_table();
-	/*
-	 * 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
-	 * using this PMD, which is not supported in forked processes.
-	 */
-	setenv("RDMAV_HUGEPAGES_SAFE", "1", 1);
 	/* Don't map UAR to WC if BlueFlame is not used.*/
 	setenv("MLX5_SHUT_UP_BF", "1", 1);
-	ibv_fork_init();
 	rte_pci_register(&mlx5_driver);
 }
 
-- 
1.8.3.1



More information about the dev mailing list