mirror of
https://github.com/opnsense/src.git
synced 2026-02-04 03:00:53 -06:00
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:
parent
8fd42f3649
commit
2d3b2ee939
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user