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

2018-10-09 Thread Thomas Monjalon
09/10/2018 15:34, Thomas Monjalon: > +int __rte_experimental > +rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str) > +{ > + int ret; > + struct rte_devargs devargs = {.args = NULL}; > + const char *bus_param_key; > + char *bus_str = NULL; > +

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

2018-10-09 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