diff options
| author | Amit Cohen <[email protected]> | 2024-01-26 19:58:28 +0100 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-01-30 15:47:35 +0100 |
| commit | c6ca2884ba043e89c3588a77ce0724a7e5868f85 (patch) | |
| tree | 234b5d02204163bdeae5fbc19f12cbea02898ede /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 5a448905e37ecf121ede090495540230b5d03946 (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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions