]> Git Repo - linux.git/commit
net/mlx5: qos: Store rate groups in a qos domain
authorCosmin Ratiu <[email protected]>
Tue, 8 Oct 2024 18:32:19 +0000 (21:32 +0300)
committerPaolo Abeni <[email protected]>
Thu, 10 Oct 2024 11:12:00 +0000 (13:12 +0200)
commit107a034d5c1e9cf86fdf4c8801ec8a07e6669520
tree9876a77473d450f529886c064590c76398d26e49
parent43f9011a3d7a51f187116d2cf87de303934619a2
net/mlx5: qos: Store rate groups in a qos domain

Groups are currently maintained as a list in their corresponding
eswitch, protected by the esw state_lock.
The upcoming cross-eswitch scheduling feature cannot work with this
approach, as it would require acquiring multiple eswitch locks (in the
correct order) in order to maintain group membership.

This commit moves the rate groups into a new 'qos domain' struct and
adds explicit qos init/cleanup steps to the eswitch init/cleanup.
Upcoming patches will expand the qos domain struct and allow it to be
shared between eswitches. For now, qos domains are private to each esw
so there's only an extra indirection.

Signed-off-by: Cosmin Ratiu <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
This page took 0.057064 seconds and 4 git commands to generate.