Hi Joeseph, I got the tester to try 4.16 and the tests still fail for
the same reason. This is the test output indicating that
/sys/class/net/DEVICENAME/speed still reports a -1 for the second port.
ERROR:root:Detected link speed (-1) is lower than detected max speed (10000)
ERROR:root:Check your device configuration and try again.
ERROR:root:If you want to override and test despite this under-speed link, use
ERROR:root:the --underspeed-ok option.
And just to verify, dmesg shows we are booted into 4.16:
[ 0.000000] Linux version 4.16.0-041600rc6-generic (kernel@gloin) (gcc
version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)) #201803182230 SMP Mon Mar 19 02:32:18
UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.16.0-041600rc6-generic
root=UUID=fcac9914-96c0-49b0-803b-269db52c3756 ro
** Tags added: kernel-bug-exists-upstream
** Changed in: linux (Ubuntu)
Status: Triaged => Confirmed
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1757191
Title:
Intel NICs not properly reporting link speed in SysFS in Xenial
Status in linux package in Ubuntu:
Confirmed
Status in linux source package in Artful:
Triaged
Bug description:
This was discovered during certification testing of 16.04.4 (I've now
seen this behaviour at least 2 times)
A system under test has a 2 port Intel X550 NIC (10Gb)
Udev reports the NIC as this:
Category: NETWORK
Interface: enp94s0f0
Product: Ethernet Controller 10G X550T
Vendor: Intel Corporation
Driver: ixgbe (ver: 5.1.0-k)
Path: /devices/pci0000:5d/0000:5d:00.0/0000:5e:00.0
ID: [8086:1563]
Subsystem ID: [152d:8a13]
Ethtool shows this info (this is for the second port, which has the issue)
Settings for enp94s0f1:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 10000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Note ethtool shows an active 10Gb link.
The test tool determines the NIC speed by introspecting the sysfs data
for each NIC port. In this case, by looking at
/sys/class/net/DEVICENAME/speed
I've now seen this on a couple different NICs using the ixgbe driver.
The first port will properly show connected link speed in
/sys/class/net/DEVICENAME/speed but the second port shows -1 in that
file.
Because of this, certification tests are failing because the tool
believes that the link speed is incorrect.
This current example is using kernel 4.13.0-37.42~16.04.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1757191/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp