Re: [dpdk-dev] [PATCH v4 10/20] eal/dev: implement device iteration

2018-04-09 Thread Gaƫtan Rivet
On Mon, Apr 09, 2018 at 07:28:00AM +, Matan Azrad wrote: > HI Gaetan > > From: Gaetan Rivet, Friday, March 30, 2018 12:24 AM > > +/* '\0' forbidden in sym */ > > +static const char * > > +strfirstof(const char *str, > > + const char *sym) > > +{ > > + const char *s; > > + > > + for (s

Re: [dpdk-dev] [PATCH v4 10/20] eal/dev: implement device iteration

2018-04-09 Thread Matan Azrad
HI Gaetan From: Gaetan Rivet, Friday, March 30, 2018 12:24 AM > +/* '\0' forbidden in sym */ > +static const char * > +strfirstof(const char *str, > +const char *sym) > +{ > + const char *s; > + > + for (s = str; s[0] != '\0'; s++) { > + const char *c; > + > +

[dpdk-dev] [PATCH v4 10/20] eal/dev: implement device iteration

2018-03-29 Thread Gaetan Rivet
Use the iteration hooks in the abstraction layers to perform the requested filtering on the internal device lists. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_dev.c | 187 lib/librte_eal/common/include/rte_dev.h | 25 + lib/librte_eal/r