From mboxrd@z Thu Jan 1 00:00:00 1970 From: Remy Horton Subject: Re: [PATCH v8 6/9] ethdev: add common devargs parser Date: Thu, 26 Apr 2018 15:30:32 +0100 Message-ID: <47beac40-7be1-1711-3326-fdc234692b91@intel.com> References: <20180416130605.6509-1-declan.doherty@intel.com> <20180426104105.18342-1-declan.doherty@intel.com> <20180426104105.18342-7-declan.doherty@intel.com> <2601191342CEEE43887BDE71AB977258AEBD049D@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Adrien Mazarguil , "Yigit, Ferruh" , Thomas Monjalon , Shahaf Shuler To: "Ananyev, Konstantin" , "Doherty, Declan" , "dev@dpdk.org" Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 731C87CFF for ; Thu, 26 Apr 2018 16:30:36 +0200 (CEST) In-Reply-To: <2601191342CEEE43887BDE71AB977258AEBD049D@IRSMSX102.ger.corp.intel.com> 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 26/04/2018 13:03, Ananyev, Konstantin wrote: [..] > I still think that if you'd like to extend rte_kvarrgs to be able to parse something like: "key=[val1,val2,...,valn]", > you have to make it generic kvargs ability and put it into librte_kvargs, not try to introduce your own new parser here. > Imagine that in addition to your 'port=[val1,val2, ..valn]' devargs string would contain some extra (let say device specific) > parameters. > What would happen, when PMD will try to use rte_kvargs_parse() on such string? > My understanding - it would fail, correct? This is partly dependent on what will (and won't) devargs provide when it is finalised. It was insourced in order to unblock the rest of the patchset in the meantime.