diff options
author | Gal Pressman <galp@mellanox.com> | 2016-04-24 19:51:47 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-26 19:58:01 (GMT) |
commit | 9218b44dcc059e08e249f6f7614b8e391eb041d8 (patch) | |
tree | 0e0ec1e49fa536a8f6112673b224b6d955785bcc /drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | |
parent | 269e6b3af3bfbc4e50b497924c2abb1c4cf3364e (diff) | |
download | linux-9218b44dcc059e08e249f6f7614b8e391eb041d8.tar.xz |
net/mlx5e: Statistics handling refactoring
Redesign ethtool statistics handling and reporting in the driver:
1. Move counters to a separate file (en_stats.h).
2. Remove unnecessary dependencies between stats and strings.
3. Use counter descriptors which hold a name and offset for each counter,
and will be used to decide which counters will be exposed.
For example when adding a new software counter to ethtool, instead of:
1. Add to stats struct.
2. Add to strings struct in the same order.
3. Change macro defining number of software counters.
The only thing needed is to link the new counter to a counter descriptor.
VPort counters are a set of hardware traffic counters created automatically
for each virtual port opened.
PPort counters are a set of counters describing per physical port
performance statistics.
These counters are gathered from hardware register and divided to groups
according to different protocols.
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/debugfs.c')
0 files changed, 0 insertions, 0 deletions