]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: Introduce hierarchy level tracking on scheduling nodes
authorCarolina Jubran <cjubran@nvidia.com>
Mon, 10 Mar 2025 21:26:54 +0000 (23:26 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 09:36:55 +0000 (10:36 +0100)
commit498bd79cb92be572258a587a4abee67d464ba1de
treed250809cb00f320a1e3308e48a7f55124a8688c7
parentb407b4b804cd6193f45599aff82307c9e2a81225
net/mlx5: Introduce hierarchy level tracking on scheduling nodes

Add a `level` field to `mlx5_esw_sched_node` to track the hierarchy
depth of each scheduling node. This allows enforcement of the
scheduling depth constraints based on `log_esw_max_sched_depth`.

Modify `esw_qos_node_set_parent()` and `__esw_qos_alloc_node()` to
correctly assign hierarchy levels. Ensure that nodes inherit their
parent’s level incrementally.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1741642016-44918-3-git-send-email-tariqt@nvidia.com
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c