]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Don't update group if qos is not enabled
authorChris Mi <cmi@nvidia.com>
Sun, 2 Oct 2022 04:56:31 +0000 (21:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Oct 2022 23:55:29 +0000 (16:55 -0700)
commit20f6ab25c6873e74a29f868d687f3ba800aa8b9c
tree5b021d1c5812222eae1e6fb97e763890ca121388
parentaf0bcbc524f7838cef1180f61283df36db3d4c5e
net/mlx5: E-switch, Don't update group if qos is not enabled

Currently, qos group will be updated and qos will be enabled when
unregistering devlink port. Actually no need to update group if qos
is not enabled.

Add a check to prevent unnecessary enabling and disabling qos for
every port.

Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Dmytro Linkin <dlinkin@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c