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)
commit5b8631c7b21ca8bc039f0bc030048973b039e0d2
tree0abf2462259bd9fbb7c73897bc595a9ea691df7e
parent470b74758260e4abc2508cf1614573c00a00465c
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: fcb64c0f5640 ("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