]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Destroy legacy fdb table when needed
authorChris Mi <cmi@nvidia.com>
Thu, 17 Nov 2022 07:48:13 +0000 (09:48 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Nov 2022 08:03:20 +0000 (00:03 -0800)
commited4319ed179880b660a241770e8147880340964f
tree6dd62490a1a57c054f15e0ddfff243bc366bfd78
parentaf12a4418f5e24cc3b3e7e37428ebd47eb996427
net/mlx5: E-switch, Destroy legacy fdb table when needed

The cited commit removes eswitch mode none. But when disabling
sriov in legacy mode or changing from switchdev to legacy mode
without sriov enabled, the legacy fdb table is not destroyed.

It is not the right behavior. Destroy legacy fdb table in above
two caes.

Fixes: b4deb7a001e6 ("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>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@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