diff options
author | 2024-11-07 21:43:49 +0200 | |
---|---|---|
committer | 2024-11-11 19:28:17 -0800 | |
commit | cc4bb15ffa8412bfe1e189d37edb6ca7d9918cb4 (patch) | |
tree | 5fa8691fbe63b54f162184217054b9e0d24c7ddd /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net/mlx5: Generalize max_rate and min_rate setting for nodes (diff) | |
download | wireguard-linux-cc4bb15ffa8412bfe1e189d37edb6ca7d9918cb4.tar.xz wireguard-linux-cc4bb15ffa8412bfe1e189d37edb6ca7d9918cb4.zip |
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 <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241107194357.683732-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions