]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5: Unify QoS element type checks across NIC and E-Switch
authorCarolina Jubran <cjubran@nvidia.com>
Tue, 8 Oct 2024 18:32:21 +0000 (21:32 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Oct 2024 11:12:00 +0000 (13:12 +0200)
commitf91c69f43c545f46f256d907d55d24d06a4ac8f5
tree4b6979dc9ed8fe64b9f242faa5f52411528fbefd
parent40efb0b7c755f7803abe59a81c3bdd73edf025d3
net/mlx5: Unify QoS element type checks across NIC and E-Switch

Refactor the QoS element type support check by introducing a new
function, mlx5_qos_element_type_supported(), which handles element type
validation for both NIC and E-Switch schedulers.

This change removes the redundant esw_qos_element_type_supported()
function and unifies the element type checks into a single
implementation.

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