diff options
author | Petr Machata <[email protected]> | 2023-06-02 18:20:08 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-06-05 11:29:49 +0100 |
commit | 75426cc0b31616b11d635076bd1692f2ff2f4a5f (patch) | |
tree | a6188b1a451d98fa45506a8d95c0bb783ef7a013 /tools/perf/scripts/python/stat-cpi.py | |
parent | 3903249ee1afb9aa06d77e2c39c4be2d3df25e0e (diff) |
mlxsw: spectrum_router: Do not query MAX_VRS on each iteration
MLXSW_CORE_RES_GET involves a call to spectrum_core, a separate module.
Instead of making the call on every iteration, cache it up front, and use
the value.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Amit Cohen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions