diff options
author | 2020-01-21 19:38:21 +0200 | |
---|---|---|
committer | 2020-01-22 22:30:12 -0800 | |
commit | 8a236b15144b29ce47f80c37bc55740a5388ecb1 (patch) | |
tree | c06570e5af1b6eb1928200805dfd578e0b3a72e9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: IPoIB, use separate stats groups (diff) | |
download | linux-dev-8a236b15144b29ce47f80c37bc55740a5388ecb1.tar.xz linux-dev-8a236b15144b29ce47f80c37bc55740a5388ecb1.zip |
net/mlx5e: Convert rep stats to mlx5e_stats_grp-based infra
In order to support all of the supported stats that are available in legacy
mode for switchdev uplink representors, convert rep stats infrastructure to
reuse struct mlx5e_stats_grp that is already used when device is in legacy
mode. Refactor rep code to use array of mlx5e_stats_grp
structures (constructed using macros provided by stats infra) to
fill/update stats, instead of fixed hardcoded set of values. This approach
allows to easily extend representors with new stats types.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions