Skip to contentSkip to conversation

ethtool: Fix SFF-8472 transceiver module identification

PATCH New Ido Schimmel 1 participant 1 message Nov 29, 2023

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

PATCH 1/1 ethtool: Fix SFF-8472 transceiver module identification

According to table 5-1 in SFF-8472 Rev. 12.4, the Identifier Values for "GBIC" (01h) and "Module soldered to motherboard (ex: SFF)" (02h) are supported by the specification in addition to the current one. Therefore, adjust ethtool to invoke the SFF-8079 parser for them, which will in turn invoke the SFF-8472 parser if the transceiver module supports digital diagnostic monitoring.

Without this patch, the EEPROM contents of such transceiver modules will be hex dumped instead of being parsed and printed in a human readable format.

---
 netlink/module-eeprom.c | 2 ++
 1 file changed, 2 insertions(+)
netlink/module-eeprom.c +2 -0
index 09ad58011d2a..fe02c5ab2b65 100644
@@ -216,6 +216,8 @@ static int eeprom_parse(struct cmd_context *ctx)
 
 	switch (request.data[0]) {
 #ifdef ETHTOOL_ENABLE_PRETTY_DUMP
+	case SFF8024_ID_GBIC:
+	case SFF8024_ID_SOLDERED_MODULE:
 	case SFF8024_ID_SFP:
 		return sff8079_show_all_nl(ctx);
 	case SFF8024_ID_QSFP:
Signature · 1 line
2.40.1