]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Verify support for scheduling element and TSAR type
authorCarolina Jubran <cjubran@nvidia.com>
Mon, 5 Aug 2024 10:13:03 +0000 (13:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:08 +0000 (19:24 +0200)
commit4bb9745cc3d343501fc6b658103f4173a82320fd
tree38e7699b7413cd4e41b2f06be20c0607aec13a5f
parent9f806d09595573b2eb2e10028cd483017e9a073d
net/mlx5: Verify support for scheduling element and TSAR type

[ Upstream commit 861cd9b9cb62feb244b8d77e68fd6ddedbbf66e9 ]

Before creating a scheduling element in a NIC or E-Switch scheduler,
ensure that the requested element type is supported. If the element is
of type Transmit Scheduling Arbiter (TSAR), also verify that the
specific TSAR type is supported.

Fixes: 214baf22870c ("net/mlx5e: Support HTB offload")
Fixes: 85c5f7c9200e ("net/mlx5: E-switch, Create QoS on demand")
Fixes: 0fe132eac38c ("net/mlx5: E-switch, Allow to add vports to rate groups")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
drivers/net/ethernet/mellanox/mlx5/core/qos.c