]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:28:33 +0000 (16:28 -0300)
commit505eeb9d4a61d93c47e5325720ab5efda04d232d
treec5c3d8c15536fe69bd944cf178d89db1bf789538
parentddcd02b3c4b03b8cb743d61e46b00991cbf19981
net/mlx5: E-switch, Destroy TSAR when fail to enable the mode

BugLink: https://bugs.launchpad.net/bugs/1891063
[ Upstream commit 2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c