net/mlx5e: Use vhca_id in generating representor port_index
authorParav Pandit <parav@mellanox.com>
Sun, 21 Jul 2019 03:20:58 +0000 (22:20 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 9 Aug 2019 21:54:11 +0000 (14:54 -0700)
commitc938451f6b9ccbf25eceb27fe1d1c24fd98af923
treeb85becc0e4752ba8a76a6fc1e3be6ed62bdc256d
parent724ee17912c9a8e5362751a22fd955166ed0550a
net/mlx5e: Use vhca_id in generating representor port_index

It is desired to use unique port indices when multiple pci devices'
devlink instance have the same switch-id.

Make use of vhca-id to generate such unique devlink port indices.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c