aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorCarolina Jubran <[email protected]>2024-11-07 21:43:50 +0200
committerJakub Kicinski <[email protected]>2024-11-11 19:28:17 -0800
commit663bc605d0db8782ff9c2704db5ce6cf2ac7fa93 (patch)
tree357b873fc9cf6ea97f653649c8c63181d9542a11 /tools/perf/scripts/python/stackcollapse.py
parentcc4bb15ffa8412bfe1e189d37edb6ca7d9918cb4 (diff)
net/mlx5: Generalize scheduling element operations
Introduce helper functions to create and destroy scheduling elements, allowing flexible configuration for different scheduling element types. The new helper functions streamline the process by centralizing error handling and logging through esw_qos_sched_elem_op_warn, which now accepts the operation type (create, destroy, or modify). The changes also adjust the esw_qos_vport_enable and mlx5_esw_qos_vport_disable functions to leverage the new generalized create/destroy helpers. The destroy functions now log errors with esw_warn without returning them. This prevents unnecessary error handling since the node was already destroyed and no further action is required from callers. 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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions