This series adds two link extended substates of bad signal.
change log:
V1 -> V2:
1. Split the uapi header update into a separate patch according to
Michal's opinion as follow link:
https://lore.kernel.org/netdev/20210824173614.mkv5i72sutxtdvrk@lion.mk-sys.cz/
Guangbin Huang (2):
update UAPI header copies
netlink: settings: add two link extended substates of bad signal
integrity
netlink/settings.c | 4 ++++
uapi/linux/ethtool.h | 2 ++
2 files changed, 6 insertions(+)
--
2.8.1
@@ -637,6 +637,8 @@ enum ethtool_link_ext_substate_link_logical_mismatch {enumethtool_link_ext_substate_bad_signal_integrity{ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS=1,ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS,};/* More information in addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. */
Add two link extended substates of bad signal integrity available in the
kernel.
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST means the input
external clock signal for SerDes is too weak or lost.
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS means the received signal for
SerDes is too weak because analog loss of signal.
Signed-off-by: Guangbin Huang <redacted>
---
netlink/settings.c | 4 ++++
1 file changed, 4 insertions(+)
From: Michal Kubecek <hidden> Date: 2021-08-26 09:34:20
On Wed, Aug 25, 2021 at 03:45:13PM +0800, Guangbin Huang wrote:
Add two link extended substates of bad signal integrity available in the
kernel.
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST means the input
external clock signal for SerDes is too weak or lost.
ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS means the received signal for
SerDes is too weak because analog loss of signal.
Signed-off-by: Guangbin Huang <redacted>
@@ -637,6 +637,8 @@ enum ethtool_link_ext_substate_link_logical_mismatch {enumethtool_link_ext_substate_bad_signal_integrity{ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS=1,ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS,};/* More information in addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. */
--
2.8.1
I replaced this commit with a full update of uapi headers. The point is
that if we keep cherry picking only specific changes in the headers, it
will become harder and harder to check if something is missing or if we
diverged from kernel. This is why an update of uapi headers should
always update all of them to the state of the same kernel commit
(usually current master or net-next tree).
I added the link to ethtool-import-uapi script to devel documentation on
the ethtool web page make things easier.
Michal
@@ -637,6 +637,8 @@ enum ethtool_link_ext_substate_link_logical_mismatch {enumethtool_link_ext_substate_bad_signal_integrity{ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS=1,ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST,+ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS,};/* More information in addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. */
--
2.8.1
I replaced this commit with a full update of uapi headers. The point is
that if we keep cherry picking only specific changes in the headers, it
will become harder and harder to check if something is missing or if we
diverged from kernel. This is why an update of uapi headers should
always update all of them to the state of the same kernel commit
(usually current master or net-next tree).
I added the link to ethtool-import-uapi script to devel documentation on
the ethtool web page make things easier.
Michal