net/mlx5: E-switch, Destroy TSAR after reload interface
authorParav Pandit <parav@mellanox.com>
Sat, 27 Jun 2020 10:11:56 +0000 (13:11 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 19:55:30 +0000 (12:55 -0700)
commit0c2600c619578f759cf3d5192b01bd14e281f24c
tree6bb5954c91720c9da5d27cd403a5fa5298e6e109
parent2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21
net/mlx5: E-switch, Destroy TSAR after reload interface

When eswitch offloads is enabled, TSAR is created before reloading
the interfaces.
However when eswitch offloads mode is disabled, TSAR is disabled before
reloading the interfaces.

To keep the eswitch enable/disable sequence as mirror, destroy TSAR
after reloading the interfaces.

Fixes: 1bd27b11c1df ("net/mlx5: Introduce E-switch QoS management")
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