ethtool: add interface to read standard MAC stats
authorJakub Kicinski <kuba@kernel.org>
Fri, 16 Apr 2021 19:27:40 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 23:59:20 +0000 (16:59 -0700)
commitca2244547ec7505d1cf61d43f5e76e3ffd99cf77
tree2fa1664495bdad762d84c60b1d64c8fc9da51602
parentf09ea6fb12723d6726293d68de00b6307368bd76
ethtool: add interface to read standard MAC stats

Most of the MAC statistics are included in
struct rtnl_link_stats64, but some fields
are aggregated. Besides it's good to expose
these clearly hardware stats separately.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
include/uapi/linux/ethtool.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/netlink.h
net/ethtool/stats.c
net/ethtool/strset.c