Re: [dpdk-dev] [PATCH v2 2/6] ethdev: add iterator to match devargs input

2018-10-09 Thread Thomas Monjalon
09/10/2018 11:31, Andrew Rybchenko: > On 10/9/18 3:16 AM, Thomas Monjalon wrote: > > if (str != NULL) { > > - kvargs = rte_kvargs_parse(str, eth_params_keys); > > + if (str[0] == '+') /* no validation of keys */ > > + str ++; > > As I understand it should

Re: [dpdk-dev] [PATCH v2 2/6] ethdev: add iterator to match devargs input

2018-10-09 Thread Andrew Rybchenko
On 10/9/18 3:16 AM, Thomas Monjalon wrote: The iterator will return the ethdev port ids matching a devargs string. It is recommended to use the macro RTE_ETH_FOREACH_MATCHING_DEV() for usage convenience. The class string is prefixed with '+' in order to skip the validation of the parameter keys.

[dpdk-dev] [PATCH v2 2/6] ethdev: add iterator to match devargs input

2018-10-08 Thread Thomas Monjalon
The iterator will return the ethdev port ids matching a devargs string. It is recommended to use the macro RTE_ETH_FOREACH_MATCHING_DEV() for usage convenience. The class string is prefixed with '+' in order to skip the validation of the parameter keys. It is tolerated for the compatibility with t