From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 93C351C52 for ; Thu, 10 Mar 2016 17:49:39 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 10 Mar 2016 08:49:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,316,1455004800"; d="scan'208";a="907126095" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.166]) by orsmga001.jf.intel.com with SMTP; 10 Mar 2016 08:49:36 -0800 Received: by (sSMTP sendmail emulation); Thu, 10 Mar 2016 16:49:35 +0025 Date: Thu, 10 Mar 2016 16:49:35 +0000 From: Bruce Richardson To: "Iremonger, Bernard" Message-ID: <20160310164935.GL18264@bricha3-MOBL3> References: <1456919741-10711-1-git-send-email-woz@semihalf.com> <8CEF83825BEC744B83065625E567D7C219FB6249@IRSMSX108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8CEF83825BEC744B83065625E567D7C219FB6249@IRSMSX108.ger.corp.intel.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Wojciech Zmuda , "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v4] af_packet: make the device detachable 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: Thu, 10 Mar 2016 16:49:40 -0000 On Thu, Mar 03, 2016 at 01:54:50PM +0000, Iremonger, Bernard wrote: > > -----Original Message----- > > From: Wojciech Zmuda [mailto:woz@semihalf.com] > > Sent: Wednesday, March 2, 2016 11:56 AM > > To: dev@dpdk.org > > Cc: Iremonger, Bernard ; > > linville@tuxdriver.com; Richardson, Bruce ; > > pmatilai@redhat.com > > Subject: [PATCH v4] af_packet: make the device detachable > > > > Allow dynamic deallocation of af_packet device through proper API > > functions. To achieve this: > > * set device flag to RTE_ETH_DEV_DETACHABLE > > * implement rte_pmd_af_packet_devuninit() and expose it > > through rte_driver.uninit() > > * copy device name to ethdev->data to make discoverable with > > rte_eth_dev_allocated() > > Moreover, make af_packet init function static, as there is no reason to keep > > it public. > > > > Signed-off-by: Wojciech Zmuda > > Acked-by: Bernard Iremonger > Applied to dpdk-next-net/rel_16_04 /Bruce