]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Simplify condition on esw_vport_enable_qos()
authorEli Cohen <elic@nvidia.com>
Tue, 12 Jan 2021 07:05:25 +0000 (23:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 23:45:51 +0000 (15:45 -0800)
commit5928b0549d131308da592adda74d9bb0f78e3a60
tree3ac3385737b20f8c07e6e83fbd8d398f2c4cd6cc
parent48386ef7fcd8679030f29bee8195eb40947c46e8
net/mlx5e: Simplify condition on esw_vport_enable_qos()

esw->qos.enabled will only be true if both MLX5_CAP_GEN(dev, qos) and
MLX5_CAP_QOS(dev, esw_scheduling) are true. Therefore, remove them from
the condition in and rely only on esw->qos.enabled.

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: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c