Network device on z/VM instance incorrectly reports line speed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Undecided
|
Frank Heimes | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Line speed is incorrectly reported on z/VM instances in /sys when compared to what is claimed to be supported and advertised.
for example, ethtool shows supported and advertised speeds of 1000Mb/s but /sys is only indicating 10Mb/s.
ubuntu@hwe0008:~$ ethtool enc600
Settings for enc600:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Link detected: yes
ubuntu@hwe0008:~$ cat /sys/class/
10
I'm presuming this issue lies somewhere in the qeth driver:
P: /devices/
E: DEVPATH=
E: ID_NET_
E: ID_NET_
E: ID_NET_NAME=enc600
E: ID_NET_
E: ID_NET_
E: ID_PATH=
E: ID_PATH_
E: IFINDEX=2
E: INTERFACE=enc600
E: SUBSYSTEM=net
E: SYSTEMD_
E: TAGS=:systemd:
E: USEC_INITIALIZE
This is not an issue on my LPAR that uses the same drivers (but also adds ctcm and zfcp, so maybe therein lies the difference in speed reporting?)
In any case, if the speeds cannot be correctly reported, they shouldn't be reported at all. virtio handles this by setting speed to -1:
ubuntu@s1lp9g003:~$ cat /sys/class/
-1
ubuntu@s1lp9g003:~$ ethtool eth0
Settings for eth0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: Unknown!
Duplex: Unknown! (255)
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Link detected: yes
That last example is a 1Gb/s interface on a z/KVM instance.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.8.0-36-generic s390x
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: s390x
Date: Fri Feb 24 17:08:59 2017
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C
SHELL=/bin/bash
SourcePackage: linux-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ubuntu-z-systems: | |
assignee: | nobody → bugproxy (bugproxy) |
tags: | added: architecture-s39064 bugnameltc-152102 severity-high targetmilestone-inin1604 |
Changed in ubuntu-z-systems: | |
status: | New → Confirmed |
Changed in ubuntu-z-systems: | |
status: | Incomplete → Fix Released |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Released |
The hypervisor does not report to the linux kernel what the hypervisor network connections are configured with.
Please open an issue with IBM to improve z/VM hypervisor to report real line speeds to the guest linux.
Note, z/VM guests are effectively virtual machines, not physical hardware.