From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 857A39ACB for ; Tue, 14 Jun 2016 23:55:59 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 14 Jun 2016 14:55:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,472,1459839600"; d="scan'208";a="997686004" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga002.jf.intel.com with ESMTP; 14 Jun 2016 14:55:58 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.193]) by IRSMSX103.ger.corp.intel.com ([169.254.3.240]) with mapi id 14.03.0248.002; Tue, 14 Jun 2016 22:55:56 +0100 From: "Pattan, Reshma" To: Thomas Monjalon CC: "dev@dpdk.org" , "david.marchand@6wind.com" Thread-Topic: [dpdk-dev] [PATCH v9 4/8] ethdev: make get port by name and get name by port public Thread-Index: AQHRxiCaL7Auf6NrN0qdb8gE/mt8DZ/pWE0AgAAny2A= Date: Tue, 14 Jun 2016 21:55:55 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F0104DF9B@IRSMSX109.ger.corp.intel.com> References: <1465575534-23605-1-git-send-email-reshma.pattan@intel.com> <1465897108-26548-1-git-send-email-reshma.pattan@intel.com> <1465897108-26548-5-git-send-email-reshma.pattan@intel.com> <14985579.xgXNtyuUaB@xps13> In-Reply-To: <14985579.xgXNtyuUaB@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTA5YjEzYzgtNTFhMC00ZTQwLTk3OWEtMWFiNmNiMDAwMDdhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjdES1p0U2tRSzY3eTFWenU3R0lyTm5ZQW5KbG4rXC9EXC9yNXFjTnNnZmdzMD0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v9 4/8] ethdev: make get port by name and get name by port public 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, 14 Jun 2016 21:56:00 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, June 14, 2016 9:24 PM > To: Pattan, Reshma > Cc: dev@dpdk.org; david.marchand@6wind.com > Subject: Re: [dpdk-dev] [PATCH v9 4/8] ethdev: make get port by name and = get > name by port public >=20 > 2016-06-14 10:38, Reshma Pattan: > > Converted rte_eth_dev_get_port_by_name to a public API. > > Converted rte_eth_dev_get_name_by_port to a public API. >=20 > No justification? I will add the justification to commit message.=20 >=20 > It was planned to remove these functions. > The unique naming of the device interfaces could be improved in EAL. Packet capture framework provides APIs to enable or disable packet captu= re either using portid, or pci adrres /device name.=20 These apis were made public for packet capture framework library to conver= t pci address and device names to port id internally, and use the port information for registering the RxTx callbacks. These API= s are needed, without which library will not work.=20 Thanks, Reshma