[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-05 Thread Simon Kågström
On 2015-06-04 23:27, Chilikin, Andrey wrote: >> Its not a bad addition, I'm just not sure its worth having to take on the >> additional API surface to include. I'd be more supportive if you could >> enhance >> the function to allow the previously mentioned before/after flexibiilty. >> Then w

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Chilikin, Andrey
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > Sent: Thursday, June 4, 2015 2:56 PM > To: Wiles, Keith > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at > rte_eal_init time >

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread David Marchand
On Thu, Jun 4, 2015 at 4:27 PM, Wiles, Keith wrote: > Hi Neil and Stephen, > > I agree this is not saving instructions and adding performance, but of > code clutter and providing a layered model for the developer. The > rte_eal_init() routine still exists and I was not trying to remove that > API

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Wiles, Keith
Hmmm, replied in HTML. >On Thu, Jun 4, 2015 at 4:27 PM, Wiles, Keith > wrote: > >Hi Neil and Stephen, > >I agree this is not saving instructions and adding performance, but of >code clutter and providing a layered model for the developer. The >rte_eal_init() routine still exists and I was not tryi

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Wiles, Keith
org>> Subject: Re: [dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time On Thu, Jun 4, 2015 at 4:27 PM, Wiles, Keith mailto:keith.wiles at intel.com>> wrote: Hi Neil and Stephen, I agree this is not saving instructions and adding performance, but of code clutter a

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Wiles, Keith
Hi Neil and Stephen, On 6/4/15, 8:55 AM, "Neil Horman" wrote: >On Thu, Jun 04, 2015 at 11:50:33AM +, Wiles, Keith wrote: >> Hi Stephen >> >> On 6/3/15, 7:12 PM, "Stephen Hemminger" >>wrote: >> >> >On Wed, 3 Jun 2015 13:49:53 -0500 >> >Keith Wiles wrote: >> > >> >> +/* Launch threads, ca

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Thomas F Herbert
On 6/4/15 9:55 AM, Neil Horman wrote: > On Thu, Jun 04, 2015 at 11:50:33AM +, Wiles, Keith wrote: >> Hi Stephen >> >> On 6/3/15, 7:12 PM, "Stephen Hemminger" >> wrote: >> >>> On Wed, 3 Jun 2015 13:49:53 -0500 >>> Keith Wiles wrote: >>> +/* Launch threads, called at application init()

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Wiles, Keith
Hi Stephen On 6/3/15, 7:12 PM, "Stephen Hemminger" wrote: >On Wed, 3 Jun 2015 13:49:53 -0500 >Keith Wiles wrote: > >> +/* Launch threads, called at application init() and parse app args. */ >> +int >> +rte_eal_init_parse(int argc, char **argv, >> +int (*parse)(int, char **)) >> +{

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Neil Horman
On Thu, Jun 04, 2015 at 11:50:33AM +, Wiles, Keith wrote: > Hi Stephen > > On 6/3/15, 7:12 PM, "Stephen Hemminger" wrote: > > >On Wed, 3 Jun 2015 13:49:53 -0500 > >Keith Wiles wrote: > > > >> +/* Launch threads, called at application init() and parse app args. */ > >> +int > >> +rte_eal_in

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-04 Thread Stephen Hemminger
On Thu, 4 Jun 2015 09:55:42 -0400 Neil Horman wrote: > That said, I'm not sure theres much value in adding this to the API. For one, > it implies that dpdk arguments need to come first on the command line. While > all the example applications do that, theres no requirement that they do so, > a

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-03 Thread Thomas Monjalon
Hi Keith, 2015-06-03 13:49, Keith Wiles: > Signed-off-by: Keith Wiles > --- > lib/librte_eal/bsdapp/eal/eal.c | 20 > lib/librte_eal/common/include/rte_eal.h | 32 > 2 files changed, 52 insertions(+) These comments would be useful: A

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-03 Thread Wiles, Keith
On 6/3/15, 2:24 PM, "Thomas Monjalon" wrote: >Hi Keith, > >2015-06-03 13:49, Keith Wiles: >> Signed-off-by: Keith Wiles >> --- >> lib/librte_eal/bsdapp/eal/eal.c | 20 >> lib/librte_eal/common/include/rte_eal.h | 32 >> >> 2 files c

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-03 Thread Stephen Hemminger
On Wed, 3 Jun 2015 13:49:53 -0500 Keith Wiles wrote: > +/* Launch threads, called at application init() and parse app args. */ > +int > +rte_eal_init_parse(int argc, char **argv, > + int (*parse)(int, char **)) > +{ > + int ret; > + > + ret = rte_eal_init(argc, argv); > +

[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time

2015-06-03 Thread Keith Wiles
Signed-off-by: Keith Wiles --- lib/librte_eal/bsdapp/eal/eal.c | 20 lib/librte_eal/common/include/rte_eal.h | 32 2 files changed, 52 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index