net/mlx5: Verify support for scheduling element and TSAR type
[ Upstream commit 861cd9b9 ] 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: 214baf22 ("net/mlx5e: Support HTB offload") Fixes: 85c5f7c9 ("net/mlx5: E-switch, Create QoS on demand") Fixes: 0fe132ea ("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>
Loading