]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled
authorEli Cohen <elic@nvidia.com>
Mon, 9 Nov 2020 09:35:52 +0000 (11:35 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 17 Nov 2020 19:50:53 +0000 (11:50 -0800)
commit8d0894b528c79c92296d9012e262d965ef52c851
tree0abf2462259bd9fbb7c73897bc595a9ea691df7e
parentb1030c39cc9255f82ce13d996f0f6f5a539e5995
net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled

Avoid calling mlx5_esw_modify_vport_rate() if qos is not enabled and
avoid unnecessary syndrome messages from firmware.

Fixes: 3686582e3078 ("net/mlx5: E-Switch, add ingress rate support")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c