aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangbin Huang <huangguangbin2@huawei.com>2021-08-26 11:23:14 +0200
committerMichal Kubecek <mkubecek@suse.cz>2021-08-26 11:23:14 +0200
commitd42b86647d26d68348e1245d6a527a98953a6c47 (patch)
tree5f9d8e1e3b9d6b72e8b34af11dd98d34f7958081
parentd98f975d04436501827ffddb8f46b386bdbd5a8e (diff)
downloadethtool-d42b86647d26d68348e1245d6a527a98953a6c47.tar.gz
netlink: settings: add two link extended substates of bad signal integrity
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 <huangguangbin2@huawei.com>
-rw-r--r--netlink/settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/netlink/settings.c b/netlink/settings.c
index e47a38f..6d10a07 100644
--- a/netlink/settings.c
+++ b/netlink/settings.c
@@ -639,6 +639,10 @@ static const char *const names_bad_signal_integrity_link_ext_substate[] = {
"Large number of physical errors",
[ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE] =
"Unsupported rate",
+ [ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST] =
+ "Serdes reference clock lost",
+ [ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS] =
+ "Serdes ALOS",
};
static const char *const names_cable_issue_link_ext_substate[] = {