diff options
| author | Petr Machata <petrm@nvidia.com> | 2023-06-02 18:20:07 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2023-06-05 11:29:48 +0100 |
| commit | 3903249ee1afb9aa06d77e2c39c4be2d3df25e0e (patch) | |
| tree | c6b6bd8c95fefea638c2531e5d4b22752444cea3 /tools/testing/selftests/bpf/prog_tests/bpf_loop.c | |
| parent | 5afef6748c19032ef9953b0b97f75fd0593178f3 (diff) | |
mlxsw: spectrum_router: Do not query MAX_RIFS 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 <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_loop.c')
0 files changed, 0 insertions, 0 deletions
