diff options
author | 2024-03-08 13:59:54 +0100 | |
---|---|---|
committer | 2024-03-11 14:14:09 -0700 | |
commit | 44c2fbebe18aa2452cf8a3dbef4f38850d42b564 (patch) | |
tree | 70c78025659e3c3f2a1f654ab7b9f56db2c1d0de /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: spectrum_router: Support nexthop group hardware statistics (diff) | |
download | wireguard-linux-44c2fbebe18aa2452cf8a3dbef4f38850d42b564.tar.xz wireguard-linux-44c2fbebe18aa2452cf8a3dbef4f38850d42b564.zip |
mlxsw: spectrum_router: Share nexthop counters in resilient groups
For resilient groups, we can reuse the same counter for all the buckets
that share the same nexthop. Keep a reference count per counter, and keep
all these counters in a per-next hop group xarray, which serves as a
NHID->counter cache. If a counter is already present for a given NHID, just
take a reference and use the same counter.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/cdd00084533fc83ac5917562f54642f008205bf3.1709901020.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions