[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200425180621.1140452-1-andrew@lunn.ch>
Date: Sat, 25 Apr 2020 20:06:12 +0200
From: Andrew Lunn <andrew@...n.ch>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Chris Healy <cphealy@...il.com>,
Michal Kubecek <mkubecek@...e.cz>, Andrew Lunn <andrew@...n.ch>
Subject: [PATCH net-next v1 0/9] Ethernet Cable test support
Many copper Ethernet PHY have support for performing diagnostics of
the cable. Are the cable shorted, broken, not plugged into anything at
the other end? And they can report roughly how far along the cable any
fault is.
Add infrastructure in ethtool and phylib support for triggering a
cable test and reporting the results. The Marvell 1G PHY driver is
then extended to make use of this infrastructure.
For testing, a modified ethtool(1) can be found here:
https://github.com/lunn/ethtool.git feature/cable-test-v2. This also
contains extra code for TDR dump, which will be added to the kernel in
a later patch series.
Thanks to Chris Healy for extensive testing.
Andrew Lunn (9):
net: phy: Add cable test support to state machine
net: phy: Add support for polling cable test
net: ethtool: netlink: Add support for triggering a cable test
net: ethtool: Add attributes for cable test reports
net: ethtool: Make helpers public
net: ethtool: Add infrastructure for reporting cable test results
net: ethtool: Add helpers for reporting test results
net: phy: marvell: Add cable test support
net: phy: Put interface into oper testing during cable test
Documentation/networking/ethtool-netlink.rst | 53 ++++-
drivers/net/phy/marvell.c | 202 +++++++++++++++++++
drivers/net/phy/phy.c | 94 +++++++++
include/linux/ethtool_netlink.h | 33 +++
include/linux/phy.h | 42 ++++
include/uapi/linux/ethtool_netlink.h | 59 ++++++
net/Kconfig | 1 +
net/ethtool/Makefile | 2 +-
net/ethtool/cabletest.c | 179 ++++++++++++++++
net/ethtool/netlink.c | 10 +-
net/ethtool/netlink.h | 4 +
11 files changed, 674 insertions(+), 5 deletions(-)
create mode 100644 net/ethtool/cabletest.c
--
2.26.1
Powered by blists - more mailing lists