]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: Refactor QoS group scheduling element creation
authorCarolina Jubran <cjubran@nvidia.com>
Wed, 16 Oct 2024 17:36:03 +0000 (20:36 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 11:26:16 +0000 (13:26 +0200)
commit700814fa41cecbd62a415e77524f494cafe5bc42
tree9b25624acaa183dd2e9e8779e07c5bb179e4ec8f
parent7cb08476e19fb3d0dce618df7c11713434553e27
net/mlx5: Refactor QoS group scheduling element creation

Introduce `esw_qos_create_group_sched_elem` to handle the creation of
group scheduling elements for E-Switch QoS, Transmit Scheduling
Arbiter (TSAR).

This reduces duplication and simplifies code for TSAR setup.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c