net/mlx5e: Expose same physical switch_id for all representors
authorPaul Blakey <paulb@mellanox.com>
Thu, 16 May 2019 12:27:17 +0000 (15:27 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Jun 2019 23:04:00 +0000 (16:04 -0700)
commit7ff40a46dd188b83311203e72cedf42eb264fdf1
tree4a062269d0676ff26e393a560a23bc60da87addf
parenta90f88fe557d7f2318b724a93875dcaac45b5f05
net/mlx5e: Expose same physical switch_id for all representors

Report system_image_guid as the E-Switch switch_id, this ensures
that when a NIC contains multiple PCI functions and which
has merged eswitch capability, all representors from
multiple PFs publish same switch_id.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c