From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id D25042FDD for ; Fri, 15 Sep 2017 18:00:28 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 15 Sep 2017 19:00:25 +0300 Received: from dev-r630-05.mtbc.labs.mlnx (dev-r630-05.mtbc.labs.mlnx [10.12.205.160]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v8FG0OTv030769; Fri, 15 Sep 2017 19:00:25 +0300 Received: from dev-r630-05.mtbc.labs.mlnx (localhost [127.0.0.1]) by dev-r630-05.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id v8FG0O9G072245; Sat, 16 Sep 2017 00:00:24 +0800 Received: (from xuemingl@localhost) by dev-r630-05.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id v8FG0OnN072244; Sat, 16 Sep 2017 00:00:24 +0800 From: Xueming Li To: Nelio Laranjeiro , Adrien Mazarguil Cc: dev@dpdk.org, Xueming Li Date: Fri, 15 Sep 2017 23:59:58 +0800 Message-Id: <1505491200-72127-4-git-send-email-xuemingl@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1505491200-72127-1-git-send-email-xuemingl@mellanox.com> References: <20170824140341.95471-1-xuemingl@mellanox.com> <1505491200-72127-1-git-send-email-xuemingl@mellanox.com> Subject: [dpdk-dev] [PATCH v2 4/6] net/mlx5: remove verbs fork check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2017 16:00:29 -0000 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 Acked-by: Nelio Laranjeiro --- 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