Skip to contentSkip to conversation

ethtool: Add 2 new link_ext_state names

PATCH New Michael Chan 1 participant 1 message Apr 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethtool: Add 2 new link_ext_state names

Add the corresponding names for 2 recently added ethtool_link_ext_state enums from kernel commit bc87b14594e3:

ETHTOOL_LINK_EXT_STATE_OTP_SPEED_VIOLATION
ETHTOOL_LINK_EXT_STATE_BMC_REQUEST_DOWN

for OTP (one-time-programmable) speed restrictions and BMC (Baseboard management controller) forcing the link down.

---
 netlink/settings.c | 2 ++
 1 file changed, 2 insertions(+)
netlink/settings.c +2 -0
index 05d215e..b5e44f2 100644
@@ -671,6 +671,8 @@ static const char *const names_link_ext_state[] = {
 	[ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED]	= "Power budget exceeded",
 	[ETHTOOL_LINK_EXT_STATE_OVERHEAT]		= "Overheat",
 	[ETHTOOL_LINK_EXT_STATE_MODULE]			= "Module",
+	[ETHTOOL_LINK_EXT_STATE_OTP_SPEED_VIOLATION]	= "OTP speed violation",
+	[ETHTOOL_LINK_EXT_STATE_BMC_REQUEST_DOWN]	= "BMC request down",
 };
 
 static const char *const names_autoneg_link_ext_substate[] = {
Signature · 1 line
2.51.0