net/mlx5e: Don't support phys switch id if not in switchdev mode
authorRoi Dayan <roid@mellanox.com>
Fri, 7 Aug 2020 02:05:42 +0000 (19:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 09:01:53 +0000 (11:01 +0200)
commit0216f889f190f859cc9f437b5f8a89b06d3c8b5a
tree3179709b3dde3c9e246ff37b98e2944657fdc5ef
parent487862fd9d770f4c8e37e1622d102b32b826125e
net/mlx5e: Don't support phys switch id if not in switchdev mode

Support for phys switch id ndo added for representors and if
we do not have representors there is no need to support it.
Since each port return different switch id supporting this
block support for creating bond over PFs and attaching to bridge
in legacy mode.

This bug doesn't exist upstream as the code got refactored and the
netdev api is totally different.

Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c