]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: Add support check for TSAR types in QoS scheduling
authorCarolina Jubran <cjubran@nvidia.com>
Tue, 8 Oct 2024 18:32:22 +0000 (21:32 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Oct 2024 11:12:00 +0000 (13:12 +0200)
commite1013c792960324d9780f11acd88c5b2ed7747c5
treed65dbe2b1f59ec12a03a36fd6b98a019d5017428
parentf91c69f43c545f46f256d907d55d24d06a4ac8f5
net/mlx5: Add support check for TSAR types in QoS scheduling

Introduce a new function, mlx5_qos_tsar_type_supported(), to handle the
validation of TSAR types within QoS scheduling contexts.

Refactor the existing code to use this new function, replacing direct
checks for TSAR type support in the NIC scheduling hierarchy.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/qos.c
drivers/net/ethernet/mellanox/mlx5/core/rl.c