]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:29:07 +0000 (13:29 +0100)
commit401afa5f5e5eff9e4b70d9dea739b805a7bfb0e2
tree4e7a412e1b11c787b08b87f4645da8e5249987c2
parenta5a1db757da164e3a0d72aff82918d11961fd045
net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled

[ Upstream commit 5b8631c7b21ca8bc039f0bc030048973b039e0d2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c