[dpdk-dev,v3,4/6] net/mlx5: remove verbs fork check

Message ID 20170918143619.177422-5-xuemingl@mellanox.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply patch file failure

Commit Message

Xueming Li Sept. 18, 2017, 2:36 p.m. UTC
  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@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
---
 drivers/net/mlx5/mlx5.c | 8 --------
 1 file changed, 8 deletions(-)
  

Patch

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);
 }