diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-04-16 21:27:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-17 01:59:20 +0200 |
commit | bfad2b979ddcc330c08bb071eb3c3f7b3411a681 (patch) | |
tree | e605600f6fec062aa5d9d24329f9b19a1e7d8340 /net/ethtool/strset.c | |
parent | ethtool: add interface to read standard MAC stats (diff) | |
download | linux-bfad2b979ddcc330c08bb071eb3c3f7b3411a681.tar.xz linux-bfad2b979ddcc330c08bb071eb3c3f7b3411a681.zip |
ethtool: add interface to read standard MAC Ctrl stats
Number of devices maintains the standard-based MAC control
counters for control frames. Add a API for those.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/strset.c')
-rw-r--r-- | net/ethtool/strset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ethtool/strset.c b/net/ethtool/strset.c index a8aac7bcfcc9..a33c603a7a02 100644 --- a/net/ethtool/strset.c +++ b/net/ethtool/strset.c @@ -95,6 +95,11 @@ static const struct strset_info info_template[] = { .count = __ETHTOOL_A_STATS_ETH_MAC_CNT, .strings = stats_eth_mac_names, }, + [ETH_SS_STATS_ETH_CTRL] = { + .per_dev = false, + .count = __ETHTOOL_A_STATS_ETH_CTRL_CNT, + .strings = stats_eth_ctrl_names, + }, }; struct strset_req_info { |