Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Bruce Richardson
On Fri, Mar 03, 2017 at 12:17:47PM +, Legacy, Allain wrote: > > -Original Message- > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Also, for a single parameter like a comment char, I don't think we need to > go > > creating a separate structure. The current flags pa

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Dumitrescu, Cristian
> -Original Message- > From: Legacy, Allain [mailto:allain.leg...@windriver.com] > Sent: Friday, March 3, 2017 12:19 PM > To: Dumitrescu, Cristian ; Yuanhan Liu > ; Richardson, Bruce > > Cc: dev@dpdk.org; Jolliffe, Ian (Wind River) > Subject: RE: [dpdk-

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Legacy, Allain
> -Original Message- > From: Dumitrescu, Cristian [mailto:cristian.dumitre...@intel.com] > I disagree here. I think we must control the set of allowed separators to > avoid confusion. I don't understand. What will be confusing? The app owns the file format and is responsible to ensure th

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Legacy, Allain
> -Original Message- > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Also, for a single parameter like a comment char, I don't think we need to go > creating a separate structure. The current flags parameter is unused, so just > replace it with the comment char one. With usi

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Dumitrescu, Cristian
> -Original Message- > From: Legacy, Allain [mailto:allain.leg...@windriver.com] > Sent: Friday, March 3, 2017 12:14 PM > To: Dumitrescu, Cristian ; Yuanhan Liu > ; Richardson, Bruce > > Cc: dev@dpdk.org; Jolliffe, Ian (Wind River) > Subject: RE: [dpdk-

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Legacy, Allain
> -Original Message- > From: Dumitrescu, Cristian [mailto:cristian.dumitre...@intel.com] > Both approaches can support this. Therefore, IMO the separator char is not > enough to justify approach 1. I would only go for approach 1 if there are > some other parameters that we could consider

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Bruce Richardson
On Fri, Mar 03, 2017 at 11:31:11AM +, Legacy, Allain wrote: > > -Original Message- > > From: Dumitrescu, Cristian [mailto:cristian.dumitre...@intel.com] > > Possible options that I see: > > 1. Add a new parameters argument to the load functions (e.g. struct > > cfgfile_params *p), whit

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Dumitrescu, Cristian
> -Original Message- > From: Legacy, Allain [mailto:allain.leg...@windriver.com] > Sent: Friday, March 3, 2017 11:31 AM > To: Dumitrescu, Cristian ; Yuanhan Liu > ; Richardson, Bruce > > Cc: dev@dpdk.org; Jolliffe, Ian (Wind River) > Subject: RE: [dpdk-

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Legacy, Allain
> -Original Message- > From: Dumitrescu, Cristian [mailto:cristian.dumitre...@intel.com] > Possible options that I see: > 1. Add a new parameters argument to the load functions (e.g. struct > cfgfile_params *p), whit the comment char as one (and currently only) field > of this struct. Drawb

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-03 Thread Dumitrescu, Cristian
> > We are trying to avoid adding in extra build-time options to DPDK, so > > can you please rework this patch to make it a run-time option instead. > > +1 for making it a run-time option. > > --yliu > +1 > > Perhaps just add a set_comment_char() API call to the library. If this > > is a

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-02 Thread Yuanhan Liu
On Thu, Mar 02, 2017 at 09:10:15PM +, Bruce Richardson wrote: > On Thu, Mar 02, 2017 at 02:29:27PM -0500, Allain Legacy wrote: > > The current cfgfile comment character is hardcoded to ';'. This commit > > introduces a configuration attribute to allow an application to select a > > different c

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-02 Thread Legacy, Allain
> -Original Message- > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > We are trying to avoid adding in extra build-time options to DPDK, so > can you please rework this patch to make it a run-time option instead. > Perhaps just add a set_comment_char() API call to the library

Re: [dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-02 Thread Bruce Richardson
On Thu, Mar 02, 2017 at 02:29:27PM -0500, Allain Legacy wrote: > The current cfgfile comment character is hardcoded to ';'. This commit > introduces a configuration attribute to allow an application to select a > different character. This is to ease adoption by applications that have an > existin

[dpdk-dev] [PATCH 1/5] cfgfile: configurable comment character

2017-03-02 Thread Allain Legacy
The current cfgfile comment character is hardcoded to ';'. This commit introduces a configuration attribute to allow an application to select a different character. This is to ease adoption by applications that have an existing configuration file which may use a different comment character. For i