net/mlx5: probe port representors in natural order
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 10 Jul 2018 16:04:56 +0000 (18:04 +0200)
committerShahaf Shuler <shahafs@mellanox.com>
Wed, 11 Jul 2018 13:37:26 +0000 (15:37 +0200)
commit116f90ad7e41afe4c6319f8ad68000716537cd06
treefbd0840e76e8c8dfdf7f735f4148b0eafa8c9fc2
parent2b73026388984712b605e0a90f5828e7bd7344a9
net/mlx5: probe port representors in natural order

Port representors are probed in whatever unspecified order
ibv_get_device_list() returns them.

This is counterintuitive to users since DPDK port IDs assignment almost
never follows the same sequence as representor IDs. Additionally, the
master device does not necessarily inherit the lowest DPDK port ID.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5.c