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 B37AC2BA1 for ; Thu, 3 Mar 2016 14:54:55 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 03 Mar 2016 05:54:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,532,1449561600"; d="scan'208";a="663190267" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by FMSMGA003.fm.intel.com with ESMTP; 03 Mar 2016 05:54:51 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.102]) by IRSMSX153.ger.corp.intel.com ([169.254.9.60]) with mapi id 14.03.0248.002; Thu, 3 Mar 2016 13:54:50 +0000 From: "Iremonger, Bernard" To: Wojciech Zmuda , "dev@dpdk.org" Thread-Topic: [PATCH v4] af_packet: make the device detachable Thread-Index: AQHRdHqLNch7Lnbv10i8dvtYxdwaa59HvaMA Date: Thu, 3 Mar 2016 13:54:50 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219FB6249@IRSMSX108.ger.corp.intel.com> References: <1456919741-10711-1-git-send-email-woz@semihalf.com> In-Reply-To: <1456919741-10711-1-git-send-email-woz@semihalf.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjA2ZTczZDktZGQ1Yy00OTYyLTk5NzctYzMzYjQ4MDliYmM1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InFCZ2lMeXdIREs4dk50Wm1NdWl3OWVQdFhTT0FrXC9SMnFVQnhjbW9wb01vPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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, 03 Mar 2016 13:54:56 -0000 > -----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 >=20 > 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 k= eep > it public. >=20 > Signed-off-by: Wojciech Zmuda Acked-by: Bernard Iremonger