aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2020-01-21 19:38:21 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-01-22 22:30:12 -0800
commit8a236b15144b29ce47f80c37bc55740a5388ecb1 (patch)
treec06570e5af1b6eb1928200805dfd578e0b3a72e9 /drivers/net/ethernet/intel/ice/ice_lib.c
parent2a303f13f9cda5a8f5729ccb84b211c1ef6bed92 (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 <vladbu@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions