diff options
| author | Carolina Jubran <[email protected]> | 2024-11-07 21:43:49 +0200 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-11 19:28:17 -0800 |
| commit | cc4bb15ffa8412bfe1e189d37edb6ca7d9918cb4 (patch) | |
| tree | 5fa8691fbe63b54f162184217054b9e0d24c7ddd /tools/perf/scripts/python/bin | |
| parent | ac778fefed340e019bc9c022842b4a2cc5713559 (diff) | |
net/mlx5: Refactor scheduling element configuration bitmasks
Refactor esw_qos_sched_elem_config to set bitmasks only when max_rate
or bw_share values change, allowing the function to configure nodes
with only one of these parameters.
This enables more flexible usage for nodes where only one parameter
requires configuration.
Remove scattered assignments and checks to centralize them within this
function, removing the now redundant esw_qos_set_node_max_rate
entirely.
With this refactor, also remove the assignment of the vport scheduling
node max rate to the parent max rate for unlimited vports
(where max rate is set to zero), as firmware already handles this
behavior.
Signed-off-by: Carolina Jubran <[email protected]>
Reviewed-by: Cosmin Ratiu <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions