Thomas Monjalon 7f98942886 ethdev: add siblings iterators
If multiple ports share the same hardware device (rte_device),
they are siblings and can be found thanks to the new functions
and loop macros.
One iterator takes a port id as reference,
while the other one directly refers to the parent device.

The ownership is not checked because siblings may have
different owners.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Tested-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2019-04-05 17:45:22 +02:00
..
2019-04-04 22:46:05 +02:00
2019-04-04 22:46:05 +02:00
2018-10-12 19:33:02 +02:00
2018-12-19 20:56:09 +01:00
2019-03-29 17:25:32 +01:00
2019-04-04 22:06:16 +02:00
2019-04-04 22:06:16 +02:00