From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v8 6/9] ethdev: add common devargs parser Date: Thu, 26 Apr 2018 13:15:09 +0100 Message-ID: References: <20180416130605.6509-1-declan.doherty@intel.com> <20180426104105.18342-1-declan.doherty@intel.com> <20180426104105.18342-7-declan.doherty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Adrien Mazarguil , Thomas Monjalon , Shahaf Shuler , Konstantin Ananyev , Remy Horton To: Declan Doherty , dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id A945D6CC3 for ; Thu, 26 Apr 2018 14:15:14 +0200 (CEST) In-Reply-To: <20180426104105.18342-7-declan.doherty@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/26/2018 11:41 AM, Declan Doherty wrote: > From: Remy Horton > > Introduces a new structure, rte_eth_devargs, to support generic > ethdev arguments common across NET PMDs, with a new API > rte_eth_devargs_parse API to support PMD parsing these arguments. The > patch add support for a representor argument passed with passed with > the EAL -w option. The representor parameter allows the user to specify > which representor ports to initialise on a device. > > The argument supports passing a single representor port, a list of > port values or a range of port values. > > -w BDF,representor=1 # create representor port 1 on pci device BDF > -w BDF,representor=[1,2,5,6,10] # create representor ports in list > -w BDF,representor=[0-31] # create representor ports in range > > Signed-off-by: Remy Horton > Signed-off-by: Declan Doherty <...> > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * PMD helper function to parse ethdev arguments > + * > + * @param devargs > + * device arguments > + * @param eth_devargs > + * parsed ethdev specific arguments. > + * > + * @return > + * Negative errno value on error, 0 on success. > + */ > +int __rte_experimental > +rte_eth_devargs_parse(const char *dargs, struct rte_eth_devargs *eth_devargs); API doc build giving warning because of doxygen comments, devargs vs dargs, I will fix while applying as "devargs"