From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 52CA9A04A2; Tue, 12 May 2020 07:31:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2E19C1C0D7; Tue, 12 May 2020 07:31:49 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5D50B1C0CE for ; Tue, 12 May 2020 07:31:47 +0200 (CEST) IronPort-SDR: PbTYwy6d2b8NilBs9W38mnZ0Jy3gZeNJfgpYAiJlMFlN/B6FJM4UP/D/wmjH3dKV9FsL0e2aDT iNOoq2IvXXcg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 22:31:46 -0700 IronPort-SDR: SIRmXdrpfAUnWmOMpCK7KjiJym60JA4R+qIY2eACYn4l1Bbv/q6jQliXwcaTeNBpr2MADl9z6J +bRgsC0JYHYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,382,1583222400"; d="scan'208";a="297186269" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.116.183]) by fmsmga002.fm.intel.com with ESMTP; 11 May 2020 22:31:45 -0700 Date: Tue, 12 May 2020 13:23:40 +0800 From: Ye Xiaolong To: alvinx.zhang@intel.com Cc: dev@dpdk.org, beilei.xing@intel.com, wenzhuo.lu@intel.com Message-ID: <20200512052340.GP75514@intel.com> References: <20200429063724.17284-1-alvinx.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429063724.17284-1-alvinx.zhang@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH] net/e1000: fix port hotplug for multi-process 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 04/29, alvinx.zhang@intel.com wrote: >From: Alvin Zhang Cc: stable@dpdk.org > >Enable detach device on secondary process. > >Fixes: b9eee2cb8c29 (e1000: support port hotplug) >Cc: bernard.iremonger@intel.com >Cc: stable@dpdk.org > >Signed-off-by: Alvin Zhang >--- > drivers/net/e1000/em_ethdev.c | 2 +- > drivers/net/e1000/igb_ethdev.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c >index 188cda3..902b1cd 100644 >--- a/drivers/net/e1000/em_ethdev.c >+++ b/drivers/net/e1000/em_ethdev.c >@@ -321,7 +321,7 @@ static int eth_em_set_mc_addr_list(struct rte_eth_dev *dev, > PMD_INIT_FUNC_TRACE(); > > if (rte_eal_process_type() != RTE_PROC_PRIMARY) >- return -EPERM; >+ return 0; > > eth_em_close(eth_dev); > >diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c >index 520fba8..a5551e8 100644 >--- a/drivers/net/e1000/igb_ethdev.c >+++ b/drivers/net/e1000/igb_ethdev.c >@@ -923,7 +923,7 @@ static int igb_flex_filter_uninit(struct rte_eth_dev *eth_dev) > PMD_INIT_FUNC_TRACE(); > > if (rte_eal_process_type() != RTE_PROC_PRIMARY) >- return -EPERM; >+ return 0; > > eth_igb_close(eth_dev); > >@@ -1044,7 +1044,7 @@ static int igb_flex_filter_uninit(struct rte_eth_dev *eth_dev) > PMD_INIT_FUNC_TRACE(); > > if (rte_eal_process_type() != RTE_PROC_PRIMARY) >- return -EPERM; >+ return 0; > > igbvf_dev_close(eth_dev); > >-- >1.8.3.1 > Applied to dpdk-next-net-intel, Thanks.