]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf29c5d5165d42e2d2624b901e99a36bdc338cc0f
tree6bb5954c91720c9da5d27cd403a5fa5298e6e109
parentcb6f78a88ed4c17feabd6dbb655744e9f0d3b0d0
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: 26d9c8a91155 ("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