net/mlx5e: Allow legacy vf ndos only if in legacy mode
authorRoi Dayan <roid@nvidia.com>
Wed, 16 Sep 2020 07:10:48 +0000 (10:10 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:38 +0000 (16:48 -0700)
commit1aa48ca6aa9fe7d59b853d2edd295e0486547700
treeed3ecc44fc0d70678d3aabcf3ceb19baa56ccedc
parentf031dbd530eae5db3ff03510207772df68f5d9e6
net/mlx5e: Allow legacy vf ndos only if in legacy mode

We will re-use the native NIC port net device instance for the Uplink
representor. Several VF ndo ops are not relevant in switchdev mode.
Disallow them when eswitch mode is not legacy as a preparation.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c