src
src copied to clipboard
Ifconfig -v does not display DDM of SFP+ GBIC
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [x ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [ x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
Opnsense DEC3850: ifconfig -v (for example) ax0 does not display the DDM.
To Reproduce
Steps to reproduce the behavior:
- Go to the terminal
- ifconfig -v ax0
- It should display the DDM of the GBIC. In my part Flexoptix GBIC. On pfsense it display the DDM
Expected behavior
On pfsense it should be correct:
With the newest opnsense business version not:
OPNsense 21.10.3-amd64 FreeBSD 12.1-RELEASE-p22-HBSD OpenSSL 1.1.1m 14 Dec 2021 DEC3850
output depends on the driver, AMD's axgbe doesn't seem to support sfp attributes in ifconfig (the data that is available would be presented in dmesg by the way)
No the DDM is not in dmesg, only tranceiver data: ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP ax0: Link is DOWN ax0: xgbe_config_sph_mode: SPH disabled in channel 0 ax0: xgbe_config_sph_mode: SPH disabled in channel 1 ax0: xgbe_config_sph_mode: SPH disabled in channel 2 ax0: xgbe_config_sph_mode: SPH disabled in channel 3 ax0: xgbe_config_sph_mode: SPH disabled in channel 4 ax0: xgbe_config_sph_mode: SPH disabled in channel 5 ax0: xgbe_config_sph_mode: SPH disabled in channel 6 ax0: xgbe_config_sph_mode: SPH disabled in channel 7 ax0: RSS Enabled ax0: Receive checksum offload Disabled ax0: VLAN filtering Disabled ax0: VLAN Stripping Disabled ax0: Checking GPIO expander validity ax0: SFP detected: ax0: vendor: FLEXOPTIX ax0: part number: S.B1312.10.XDL ax0: revision level: A ax0: serial number: F78YFDX ax0: link state changed to DOWN ax0: Link is UP - 1Gbps/Full - flow control off ax0: link state changed to UP
the ax driver doesn't offer DDM information, only static module information. Not even sure if AMD offers this on other platforms to be honest. Marking this upstream as the driver isn't ours.
Looks like it is linked to https://github.com/opnsense/src/issues/178
axgbe does support this fully on Linux. Tested on the DEC850 with Debian 11.