ethdev: allow iterating with pure class filter
authorThomas Monjalon <thomas@monjalon.net>
Tue, 23 Oct 2018 08:28:38 +0000 (10:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:05 +0000 (22:14 +0200)
commit8b9ea3b3cab2f8c4dceb79f83df6070d6806f71c
tree5a96855842517092378a85cfcc412b8e645ead7f
parent214ed1acd1256936bb74b26ea499f767e81404db
ethdev: allow iterating with pure class filter

If no rte_device is given in the iterator,
eth_dev_match() is looking at all ports without any restriction,
except the ethdev kvargs filter.

It allows to iterate with a devargs filter referencing only
some ethdev parameters. The format (from the new devargs syntax) is:
class=eth,paramY=Y

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ethdev/rte_class_eth.c
lib/librte_ethdev/rte_ethdev.c