diff options
author | Vlad Buslov <[email protected]> | 2020-01-21 19:38:21 +0200 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2020-01-22 22:30:12 -0800 |
commit | 8a236b15144b29ce47f80c37bc55740a5388ecb1 (patch) | |
tree | c06570e5af1b6eb1928200805dfd578e0b3a72e9 /drivers/net/ethernet/intel/ice/ice_switch.c | |
parent | 2a303f13f9cda5a8f5729ccb84b211c1ef6bed92 (diff) |
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 <[email protected]>
Reviewed-by: Roi Dayan <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_switch.c')
0 files changed, 0 insertions, 0 deletions