]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 9 Sep 2024 19:39:57 +0000 (12:39 -0700)
commit861cd9b9cb62feb244b8d77e68fd6ddedbbf66e9
treebde00b9be4cd05670953bc18d288f246ea53d1dc
parent452ef7f86036392005940de54228d42ca0044192
net/mlx5: Verify support for scheduling element and TSAR type

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>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
drivers/net/ethernet/mellanox/mlx5/core/qos.c