ifconfig: fix reporting optics on most 100g interfaces

This fixes a bug where optics on 100G and faster NICs
were not properly reported.

(cherry picked from commit 709348c21351a783ff0025519d1f7cf884771077)
This commit is contained in:
Andrew Gallatin 2025-02-25 14:17:14 -05:00 committed by Franco Fichtner
parent 8fd42f3649
commit 2d3b2ee939

View File

@ -181,6 +181,7 @@ get_qsfp_info(struct i2c_info *ii, struct ifconfig_sfp_info *sfp)
if (code & SFF_8636_EXT_COMPLIANCE) {
read_i2c(ii, SFF_8436_BASE, SFF_8436_OPTIONS_START, 1,
&sfp->sfp_eth_ext);
sfp->sfp_eth_1040g = code;
} else {
/* Check 10/40G Ethernet class only */
sfp->sfp_eth_1040g =