net/mlx5: Introduce node type to rate group structure
authorCarolina Jubran <cjubran@nvidia.com>
Wed, 16 Oct 2024 17:36:04 +0000 (20:36 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 11:26:16 +0000 (13:26 +0200)
commit4235fe2cb8e98dec6f49a86c93704b6a4762c4a2
tree545b5c0e5d4c916dbdf7c505cf582895d8c891c4
parent700814fa41cecbd62a415e77524f494cafe5bc42
net/mlx5: Introduce node type to rate group structure

Introduce the `sched_node_type` enum to represent both the group and
its members as scheduling nodes in the rate hierarchy.

Add the `type` field to the rate group structure to specify the type of
the node membership in the rate hierarchy.

Generalize comments to reflect this flexibility within the rate group
structure.

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