Skip to content

Commit 2b8e9c7

Browse files
paravmellanoxSaeed Mahameed
authored andcommitted
net/mlx5: E-switch, Destroy TSAR when fail to enable the mode
When either esw_legacy_enable() or esw_offloads_enable() fails, code missed to destroy the created TSAR. Hence, add the missing call to destroy the TSAR. Fixes: 610090e ("net/mlx5: E-switch, Initialize TSAR Qos hardware block before its user vports") Signed-off-by: Parav Pandit <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 181964e commit 2b8e9c7

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ int mlx5_eswitch_enable_locked(struct mlx5_eswitch *esw, int mode, int num_vfs)
16081608
mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_IB);
16091609
mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_ETH);
16101610
}
1611-
1611+
esw_destroy_tsar(esw);
16121612
return err;
16131613
}
16141614

0 commit comments

Comments
 (0)