]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Set to legacy mode if failed to change switchdev mode
authorChris Mi <cmi@nvidia.com>
Thu, 3 Nov 2022 06:55:39 +0000 (23:55 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:42 +0000 (10:30 -0800)
commite12de39c07a7872c1ac7250311bb60b74ff29f25
treedd1bc99adb6b0b37ec48a94991d8a9d1b7cb7ecc
parent2808b37b59288ad8f1897e3546c2296df3384b65
net/mlx5: E-switch, Set to legacy mode if failed to change switchdev mode

No need to rollback to the other mode because probably will fail
again. Just set to legacy mode and clear fdb table created flag.
So that fdb table will not be cleared again.

Fixes: f019679ea5f2 ("net/mlx5: E-switch, Remove dependency between sriov and eswitch mode")
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_offloads.c