]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethtool: add support for structured PHY statistics
authorJakub Kicinski <kuba@kernel.org>
Fri, 10 Jan 2025 06:05:13 +0000 (07:05 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 10:44:19 +0000 (11:44 +0100)
commit6167c0b6e8d7ddb6b3e5efffcac34a85f7872997
tree6d7a4a5b5d021834fa3da1fb354d297da1242193
parentb7a2c1fe6b55364e61b4b54b991eb43a47bb1104
net: ethtool: add support for structured PHY statistics

Introduce a new way to report PHY statistics in a structured and
standardized format using the netlink API. This new method does not
replace the old driver-specific stats, which can still be accessed with
`ethtool -S <eth name>`. The structured stats are available with
`ethtool -S <eth name> --all-groups`.

This new method makes it easier to diagnose problems by organizing stats
in a consistent and documented way.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/netlink.h
net/ethtool/stats.c
net/ethtool/strset.c