net/mlx5: E-switch: Change eswitch mode only via devlink command
authorChris Mi <cmi@nvidia.com>
Mon, 30 May 2022 02:06:05 +0000 (05:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 2 Jul 2022 18:58:26 +0000 (11:58 -0700)
commitb6f2846afc0c3dafd58452a74a51499734d9f451
tree5859d367024f4359cac7a2bcfea8a3b8de04a20a
parentf019679ea5f2ab650c3348a79e7d9c3625f62899
net/mlx5: E-switch: Change eswitch mode only via devlink command

Enable or disable switchdev according to the eswitch mode set by
devlink command. So it is not changed by other functions anymore.

Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c