mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 13:57:33 -04:00
net/mlx5: E-Switch, notify SD on eswitch disable
When eswitch is disabled, notify the SD layer so it can clean up SD-specific resources such as the TX flow table root configuration on secondary devices. Signed-off-by: Shay Drory <shayd@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260612113904.537595-9-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
2a3fb8b2f4
commit
232de72bde
@@ -2065,6 +2065,7 @@ void mlx5_eswitch_disable(struct mlx5_eswitch *esw)
|
||||
mlx5_esw_reps_unblock(esw);
|
||||
|
||||
esw->mode = MLX5_ESWITCH_LEGACY;
|
||||
mlx5_sd_eswitch_mode_set(esw->dev, MLX5_ESWITCH_LEGACY);
|
||||
mlx5_lag_enable_change(esw->dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user