aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAmit Cohen <[email protected]>2024-01-26 19:58:28 +0100
committerPaolo Abeni <[email protected]>2024-01-30 15:47:35 +0100
commitc6ca2884ba043e89c3588a77ce0724a7e5868f85 (patch)
tree234b5d02204163bdeae5fbc19f12cbea02898ede /tools/perf/scripts/python/syscall-counts.py
parent5a448905e37ecf121ede090495540230b5d03946 (diff)
mlxsw: spectrum: Query max_lag once
The maximum number of LAGs is queried from core several times. It is used to allocate LAG array, and then to iterate over it. In addition, it is used for PGT initialization. To simplify the code, instead of querying it several times, store the value as part of 'mlxsw_sp' and use it. Signed-off-by: Amit Cohen <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions