git: b429d50df97b - stable/14 - ifconfig: fix reporting optics on most 100g interfaces
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Mar 2025 15:28:50 UTC
The branch stable/14 has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=b429d50df97bc6f85373d4bd4ffca7e7078b3fe8 commit b429d50df97bc6f85373d4bd4ffca7e7078b3fe8 Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2025-02-25 19:17:14 +0000 Commit: Andrew Gallatin <gallatin@FreeBSD.org> CommitDate: 2025-03-20 15:27:08 +0000 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) --- lib/libifconfig/libifconfig_sfp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libifconfig/libifconfig_sfp.c b/lib/libifconfig/libifconfig_sfp.c index 17f130606765..8292135d3e47 100644 --- a/lib/libifconfig/libifconfig_sfp.c +++ b/lib/libifconfig/libifconfig_sfp.c @@ -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 =