[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOdo=cNAy4kTrJ7KxEf2CQ_kiuR5sMD6jG3mJSFeSwqD6RdUtw@mail.gmail.com>
Date: Thu, 13 Nov 2025 10:42:08 +0530
From: Susheela Doddagoudar <susheelavin@...il.com>
To: netdev@...r.kernel.org, mkubecek@...e.cz
Subject: Ethtool: advance phy debug support
Hi All/ Michal Kubecek,
To support Advanced PHY Debug operations like
PRBS pattern tests, EHM tests, TX_EQ settings, Various PHY loopback etc.....
proposing a solution by custom ethtool extension implementation.
By enhancing below ethtool options
1.ethtool --phy-statistics
2.ethtool --set-phy-tunable
3.ethtool --get-phy-tunable
Currently standard ethtool supports 3 parameters configuration with phy-tunables
that are defined in "include/uapi/linux/ethtool.h".
--------
enum phy_tunable_id {
ETHTOOL_PHY_ID_UNSPEC,
ETHTOOL_PHY_DOWNSHIFT,
ETHTOOL_PHY_FAST_LINK_DOWN,
ETHTOOL_PHY_EDPD,
/*
* Add your fresh new phy tunable attribute above and remember to update
* phy_tunable_strings[] in net/ethtool/common.c
*/
__ETHTOOL_PHY_TUNABLE_COUNT,
};
Command example:
# Enable PRBS31 transmit pattern
ethtool --set-phy-tunable eth0 prbs on pattern 31
# Disable PRBS test
ethtool --set-phy-tunable eth0 prbs off
Let me know if the proposal is a feasible solution or any best
alternative options available.
Thanks,
Susheela
Powered by blists - more mailing lists