From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id 19FC747D1 for ; Fri, 15 Jul 2016 11:57:30 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so2.wedos.net (Postfix) with ESMTPSA id 3rrSfd5lKmz2rl; Fri, 15 Jul 2016 11:57:29 +0200 (CEST) Date: Fri, 15 Jul 2016 11:56:53 +0200 From: Jan Viktorin To: Shreyansh jain Cc: , , Message-ID: <20160715115653.14339bf9@pcviktorin.fit.vutbr.cz> In-Reply-To: <5788AF6E.9080203@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1468303282-2806-1-git-send-email-shreyansh.jain@nxp.com> <1468303282-2806-13-git-send-email-shreyansh.jain@nxp.com> <20160714185546.6e483b40@jvn> <5788AF6E.9080203@nxp.com> Organization: RehiveTech MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 12/17] pci: add a helper for device name 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: Fri, 15 Jul 2016 09:57:30 -0000 On Fri, 15 Jul 2016 15:09:58 +0530 Shreyansh jain wrote: > On Thursday 14 July 2016 10:25 PM, Jan Viktorin wrote: > > On Tue, 12 Jul 2016 11:31:17 +0530 > > Shreyansh Jain wrote: > > > >> eal is a better place than crypto / ethdev for naming resources. > > > > s/for naming/to name/ > > OK. > > > > > What is meant by "resources" here? > > This has historic context (from earlier version of this patch). > But I could relate the word 'resources' to EAL representation of devices - whether PCI or Crypto. > Or, Resource == Device. If it is possible I'd like more "device". But I think it's not that critical thing... > > > > >> Add a helper in eal and make use of it in crypto / ethdev. [...] > >> TAILQ_HEAD(pci_device_list, rte_pci_device); /**< PCI devices in D-linked Q. */ > >> @@ -95,6 +96,7 @@ const char *pci_get_sysfs_path(void); > >> > >> /** Formatting string for PCI device identifier: Ex: 0000:00:01.0 */ > >> #define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 > >> +#define PCI_PRI_STR_SIZE sizeof("XXXX:XX:XX.X") > >> > >> /** Short formatting string, without domain, for PCI device: Ex: 00:01.0 */ > >> #define PCI_SHORT_PRI_FMT "%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 > >> @@ -308,6 +310,29 @@ eal_parse_pci_DomBDF(const char *input, struct rte_pci_addr *dev_addr) > >> } > >> #undef GET_PCIADDR_FIELD > >> > >> +/** > >> + * Utility function to write a pci device name, this device name can later be > >> + * used to retrieve the corresponding rte_pci_addr using above functions. > > > > What about saying "using functions eal_parse_pci_*BDF"? The > > specification "above" is quite uncertain... > > Agree that 'above' is positional word and should be avoided. > I will change that to "... using eal_parse_pci_* BDF helpers". OK? OK. [...] -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic