net/mlx5: use port sibling iterators
authorThomas Monjalon <thomas@monjalon.net>
Mon, 1 Apr 2019 02:26:59 +0000 (04:26 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commitd874a4eed5b6ed3380637089f5e2f0ba04d58eb5
tree7390cce1ad1ad2f5148f3d44705ff4e71a1ac5f5
parent7f98942886bcb80a504f8bfb99638bb14a8ba14d
net/mlx5: use port sibling iterators

Iterating over siblings was done with RTE_ETH_FOREACH_DEV()
which skips the owned ports.
The new iterators RTE_ETH_FOREACH_DEV_SIBLING()
and RTE_ETH_FOREACH_DEV_OF() are more appropriate and more correct.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_ethdev.c