ethtool module info only reports hex info
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
ethtool (Ubuntu) | Status tracked in Noble | |||||
Jammy |
Fix Released
|
Undecided
|
Lucas Kanashiro | |||
Lunar |
Won't Fix
|
Undecided
|
Lucas Kanashiro | |||
Mantic |
Fix Released
|
Undecided
|
Lucas Kanashiro | |||
Noble |
Fix Released
|
Undecided
|
Lucas Kanashiro |
Bug Description
[Impact]
Users using some specific fiber connectors cannot parse the module info in a human-readable mode, they always get a hex dump info.
[Test plan]
Run 'sudo ethtool -m <network-
$ sudo ethtool -m ens5
Identifier : 0x02 (module soldered to motherboard)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x04 0x14 0x40 0x02 0x12 0x00 0x01 0x05 0x00
Transceiver type : Infiniband: 1X LX
Transceiver type : SONET: SONET reach specifier bit 1
Transceiver type : SONET: OC-48, long reach
Transceiver type : SONET: OC-12, single mode, long reach
Transceiver type : Ethernet: 1000BASE-LX
Transceiver type : FC: long distance (L)
Transceiver type : FC: Longwave laser (LC)
Transceiver type : FC: Single Mode (SM)
Transceiver type : FC: 200 MBytes/sec
Transceiver type : FC: 100 MBytes/sec
Encoding : 0x01 (8B/10B)
BR, Nominal : 3100MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 40km
Length (SMF) : 25500m
Length (50um) : 0m
Length (62.5um) : 0m
Length (Copper) : 0m
Length (OM3) : 0m
Laser wavelength : 1310nm
Vendor name : COTSWORKS
Vendor OUI : 00:00:00
Vendor PN : RJ3GEXDDPLXLCRAU
Vendor rev : 0000
Option values : 0x10 0x14
Option : RX_LOS implemented, inverted
Option : TX_DISABLE implemented
Option : Paging implemented
BR margin, max : 0%
BR margin, min : 0%
Vendor SN : B054AAHR
Date code : 230725
Optical diagnostics support : Yes
Laser bias current : 28.404 mA
Laser output power : 1.3464 mW / 1.29 dBm
Receiver signal average optical power : 0.0003 mW / -35.23 dBm
Module temperature : 53.79 degrees C / 128.82 degrees F
Module voltage : 3.2860 V
[Where problems could occur]
Since we are changing how the connectors data is parsed, this update could affect the module info output of other connectors.
[Original description]
Hi
This issue was fond in module-info command: ethtool -m ens5
ledtkn2@
Offset Values
------ ------
0x0000: 02 04 07 04 14 40 02 12 00 01 05 01 1f 00 28 ff
0x0010: 00 00 00 00 43 4f 54 53 57 4f 52 4b 53 20 20 20
0x0020: 20 20 20 20 00 00 00 00 52 4a 33 47 45 58 44 44
0x0030: 50 4c 58 4c 43 52 41 55 30 30 30 30 05 1e 00 fe
0x0040: 10 14 00 00 42 30 35 34 41 41 48 52 20 20 20 20
0x0050: 20 20 20 20 32 33 30 37 32 35 20 20 68 70 08 6e
0x0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
After upgrading a target from Ubuntu 18.04 to 22.04, I discovered that the ethtool just report a hex dump when I tried to verify my fiber SFP connectors. In 18.04 I got a report with ethtool.
I have tried to upgrade from version 5.16 to 6.1 and 6.5, but it did not fix the issue. I then downgraded to version 5.4 and now it works again.
My system:
ledtkn2@
Description: Ubuntu 22.04.3 LTS
Release: 22.04
ledtkn2@
ii ethtool 1:5.16-1 amd64 display or change Ethernet device settings
Attached a log where I tried the command with and without hex flag enabled. Then installed 5.4 version and retried the same commands and got the expected output
Related branches
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 67 lines (+36/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/0001-Fix-ethtool-module-info-in-human-readable-mode.patch (+25/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 67 lines (+36/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/0001-Fix-ethtool-module-info-in-human-readable-mode.patch (+25/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 67 lines (+36/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/0001-Fix-ethtool-module-info-in-human-readable-mode.patch (+25/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 67 lines (+36/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/0001-Fix-ethtool-module-info-in-human-readable-mode.patch (+25/-0)
debian/patches/series (+1/-0)
Changed in ethtool (Ubuntu): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
description: | updated |
Changed in ethtool (Ubuntu Noble): | |
status: | Triaged → In Progress |
Changed in ethtool (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in ethtool (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in ethtool (Ubuntu Jammy): | |
status: | New → In Progress |
Changed in ethtool (Ubuntu Mantic): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in ethtool (Ubuntu Lunar): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in ethtool (Ubuntu Jammy): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Thanks for taking the time to report this bug and trying to make Ubuntu better.
AFAIU you are claiming a change of behavior of ethtool from Bionic (18.04) to Jammy (22.04). I do not see any crash and I do not know whether this was a conscious decision from upstream (maybe not). I checked the upstream NEWS file to see if I could spot something there:
https:/ /git.kernel. org/pub/ scm/network/ ethtool/ ethtool. git/tree/ NEWS
But nothing in a first glance. Maybe we should get in touch with upstream to better understand this change of behavior between version 5.4 and 5.16. Could you please raise this with them? According to the project's page:
https:/ /mirrors. edge.kernel. org/pub/ software/ network/ ethtool/
This is how one should report a bug:
"Bug reports should be sent to the maintainer, Michal Kubecek <email address hidden>, and to the netdev mailing list <email address hidden>."
If you do that, please share a link to the discussion here so we can track it.