]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaec159b2dc3468bbc516b338a291c8c8c4cf064e
tree5859d367024f4359cac7a2bcfea8a3b8de04a20a
parentda5c5f25de4bdff57e7ef66217541ebd8b8ab80b
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