From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B8CCC2952 for ; Tue, 3 May 2016 16:54:52 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 03 May 2016 07:54:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,572,1455004800"; d="scan'208";a="797797223" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.29]) by orsmga003.jf.intel.com with SMTP; 03 May 2016 07:54:39 -0700 Received: by (sSMTP sendmail emulation); Tue, 03 May 2016 15:54:38 +0025 Date: Tue, 3 May 2016 15:54:38 +0100 From: Bruce Richardson To: Alejandro Lucero Cc: dev@dpdk.org Message-ID: <20160503145438.GB23604@bricha3-MOBL3> References: <1461676225-24248-1-git-send-email-alejandro.lucero@netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461676225-24248-1-git-send-email-alejandro.lucero@netronome.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] nfp: add flag for enabling device hotplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2016 14:54:53 -0000 On Tue, Apr 26, 2016 at 02:10:25PM +0100, Alejandro Lucero wrote: > RTE_PCI_DRV_DETACHABLE is required for detaching a device > during execution. > > Signed-off-by: Alejandro Lucero > --- > drivers/net/nfp/nfp_net.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c > index 1259d2c..ea5a2a3 100644 > --- a/drivers/net/nfp/nfp_net.c > +++ b/drivers/net/nfp/nfp_net.c > @@ -2466,7 +2466,8 @@ static struct eth_driver rte_nfp_net_pmd = { > { > .name = "rte_nfp_net_pmd", > .id_table = pci_id_nfp_net_map, > - .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, > + .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | > + RTE_PCI_DRV_DETACHABLE, > }, > .eth_dev_init = nfp_net_init, > .dev_private_size = sizeof(struct nfp_net_adapter), > -- > 1.9.1 > Applied to dpdk-next-net/rel_16_07 /Bruce