[dpdk-dev] [PATCH v2 6/6] cfgfile: add support for empty value string

Legacy, Allain Allain.Legacy at windriver.com
Mon Mar 27 13:15:27 CEST 2017


> -----Original Message-----
> From: Legacy, Allain
> Sent: Monday, March 27, 2017 7:13 AM
> To: DUMITRESCU, CRISTIAN FLORIN; RICHARDSON, BRUCE
> Cc: yuanhan.liu at linux.intel.com; dev at dpdk.org
> Subject: RE: [PATCH v2 6/6] cfgfile: add support for empty value string
> 
> We have a legacy file format that we need to support.   Other parts of our
> system are able to handle a "key=" entry in the file so we are trying to gain
> parity with those parsers.
> 
I should have also mentioned that I briefly considered changing rte_strsplit() to be able to handle that case because in python the split function handles this scenario in the desired way:

	a = "key="
	a.split('=')
	['key', '']

But, I figured that change would be too intrusive and would likely be rejected.

Allain




More information about the dev mailing list