netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/8] Introduce unified and structured PHY
@ 2025-01-06  8:32 Oleksij Rempel
  2025-01-06  8:32 ` [PATCH net-next v5 1/8] ethtool: linkstate: migrate linkstate functions to support multi-PHY setups Oleksij Rempel
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Oleksij Rempel @ 2025-01-06  8:32 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Andrew Lunn, Heiner Kallweit, Jonathan Corbet
  Cc: Oleksij Rempel, kernel, linux-kernel, netdev, Simon Horman,
	Russell King, Maxime Chevallier, linux-doc

This patch set introduces a unified and well-structured interface for
reporting PHY statistics. Instead of relying on arbitrary strings in PHY
drivers, this interface provides a consistent and structured way to
expose PHY statistics to userspace via ethtool.

The initial groundwork for this effort was laid by Jakub Kicinski, who
contributed patches to plumb PHY statistics to drivers and added support
for structured statistics in ethtool. Building on Jakub's work, I tested
the implementation with several PHYs, addressed a few issues, and added
support for statistics in two specific PHY drivers.

Most of changes are tracked in separate patches.

changes v5:
- rebase and test against latest net-next

Jakub Kicinski (2):
  net: ethtool: plumb PHY stats to PHY drivers
  net: ethtool: add support for structured PHY statistics

Oleksij Rempel (6):
  ethtool: linkstate: migrate linkstate functions to support multi-PHY
    setups
  Documentation: networking: update PHY error counter diagnostics in
    twisted pair guide
  net: phy: introduce optional polling interface for PHY statistics
  ethtool: add helper to prevent invalid statistics exposure to
    userspace
  net: phy: dp83td510: add statistics support
  net: phy: dp83tg720: add statistics support

 .../twisted_pair_layer1_diagnostics.rst       |  39 +++--
 Documentation/networking/ethtool-netlink.rst  |   1 +
 drivers/net/phy/dp83td510.c                   | 112 ++++++++++++
 drivers/net/phy/dp83tg720.c                   | 161 ++++++++++++++++++
 drivers/net/phy/phy.c                         |  20 +++
 include/linux/ethtool.h                       |  39 +++++
 include/linux/phy.h                           |  97 +++++++++++
 include/uapi/linux/ethtool.h                  |   2 +
 include/uapi/linux/ethtool_netlink.h          |  14 ++
 net/ethtool/linkstate.c                       |  25 ++-
 net/ethtool/netlink.h                         |   1 +
 net/ethtool/stats.c                           |  54 ++++++
 net/ethtool/strset.c                          |   5 +
 13 files changed, 550 insertions(+), 20 deletions(-)

--
2.39.5


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-01-08 17:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06  8:32 [PATCH net-next v5 0/8] Introduce unified and structured PHY Oleksij Rempel
2025-01-06  8:32 ` [PATCH net-next v5 1/8] ethtool: linkstate: migrate linkstate functions to support multi-PHY setups Oleksij Rempel
2025-01-06  8:32 ` [PATCH net-next v5 2/8] net: ethtool: plumb PHY stats to PHY drivers Oleksij Rempel
2025-01-08  2:02   ` Jakub Kicinski
2025-01-08  9:08     ` Oleksij Rempel
2025-01-08 16:03       ` Andrew Lunn
2025-01-08 16:24         ` Maxime Chevallier
2025-01-08 17:47           ` Jakub Kicinski
2025-01-06  8:32 ` [PATCH net-next v5 3/8] net: ethtool: add support for structured PHY statistics Oleksij Rempel
2025-01-06  8:32 ` [PATCH net-next v5 4/8] Documentation: networking: update PHY error counter diagnostics in twisted pair guide Oleksij Rempel
2025-01-06  8:32 ` [PATCH net-next v5 5/8] net: phy: introduce optional polling interface for PHY statistics Oleksij Rempel
2025-01-06  8:32 ` [PATCH net-next v5 6/8] ethtool: add helper to prevent invalid statistics exposure to userspace Oleksij Rempel
2025-01-08  2:05   ` Jakub Kicinski
2025-01-06  8:33 ` [PATCH net-next v5 7/8] net: phy: dp83td510: add statistics support Oleksij Rempel
2025-01-06  8:33 ` [PATCH net-next v5 8/8] net: phy: dp83tg720: " Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).