diff options
author | Parav Pandit <parav@mellanox.com> | 2020-06-27 13:29:28 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-07-28 12:55:27 -0700 |
commit | 2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21 (patch) | |
tree | a4d9d325137470c7ee1c360cc9dad960621c41cc /drivers/net/ethernet | |
parent | 181964e619b76ae2e71bcdc6001cf977bec4cf6e (diff) | |
download | linux-2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21.tar.gz linux-2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21.tar.bz2 linux-2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21.zip |
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: 610090ebce92 ("net/mlx5: E-switch, Initialize TSAR Qos hardware block before its user vports")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index 1116ab9bea6c..9701f0f8be50 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -1608,7 +1608,7 @@ abort: mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_IB); mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_ETH); } - + esw_destroy_tsar(esw); return err; } |