net/mlx5: E-switch, Destroy TSAR when fail to enable the mode
authorParav Pandit <parav@mellanox.com>
Sat, 27 Jun 2020 10:29:28 +0000 (13:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 19:55:27 +0000 (12:55 -0700)
commit2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21
treea4d9d325137470c7ee1c360cc9dad960621c41cc
parent181964e619b76ae2e71bcdc6001cf977bec4cf6e
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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c