Bug 845240 - Fail to turn on RTL8139 emulation NIC's tso in rhel5.9 guest
Fail to turn on RTL8139 emulation NIC's tso in rhel5.9 guest
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm (Show other bugs)
5.9
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Virtualization Maintenance
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-02 08:32 EDT by Sibiao Luo
Modified: 2012-08-04 09:23 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-04 09:23:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sibiao Luo 2012-08-02 08:32:02 EDT
Description of problem:
turn on the tso of eth0 and switch in host, and then boot the virtual machine with three different modles of virtual nics: RTL8139,virtio,e1000. run "ethtool -K eth0 tso on" to the RTL8139 nic failed, but the e1000 and virtio are successfully. If the tso is not supported for RTL8139, it's better to prompt some unsupported warning.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q kvm
2.6.18-333.el5
kvm-83-258.el5
guest info:
# uname -r
2.6.18-333.el5

How reproducible:
100%

Steps to Reproduce:
1.turn on the tso of eth0 and switch in host and check it.
# ethtool -K eth0 tso on
# ethtool -K switch tso on
# ethtool -k eth0
...
udp fragmentation offload: on
...
# ethtool -k switch
...
tcp segmentation offload: on
...
2.boot the virtual machine with three different modles of virtual nics: RTL8139,virtio,e1000.
eg: <qemu-kvm-command>...-net nic,vlan=0,model=virtio,macaddr=08:2E:5F:0A:0D:0A -net tap,sndbuf=0,vlan=0,script=/etc/qemu-ifup,downscript=no -net nic,vlan=1,model=rtl8139,macaddr=08:2E:5F:0A:0D:1A -net tap,sndbuf=0,vlan=1,script=/etc/qemu-ifup,downscript=no -net nic,vlan=2,model=e1000,macaddr=08:2E:5F:0A:0D:2A -net tap,sndbuf=0,vlan=2,script=/etc/qemu-ifup,downscript=no
3.check status of tso for each NIC.
# ethtool -i eth0
driver: 8139cp
version: 1.2
firmware-version: 
bus-info: 0000:00:05.0
# ethtool -i eth1
driver: virtio_net
version: 
firmware-version: 
bus-info: virtio0
# ethtool -i eth2
driver: e1000
version: 7.3.21-k4-3-NAPI
firmware-version: N/A
bus-info: 0000:00:06.0
# ethtool -k eth0
...
tcp segmentation offload: off
...
# ethtool -k eth1
...
tcp segmentation offload: on
...
# ethtool -k eth2
...
tcp segmentation offload: on
...
4.turn on the tso for RTL8139.
# ethtool -K eth0 tso on

Actual results:
after the step 4, fail to turn on the tso for RTL8139,
# ethtool -K eth0 tso on
Cannot set device tcp segmentation offload settings: Invalid argument

Expected results:
turn on the tso for RTL8139 successfully, or if the tso is not supported for RTL8139, it's better to prompt some unsupported warning.

Additional info:
I test that can turn on/off the tso for e1000 and virtio successfully but fail for RTL8139.
Comment 1 RHEL Product and Program Management 2012-08-02 08:48:37 EDT
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.
Comment 2 Ronen Hod 2012-08-04 09:23:25 EDT
Closing.
It is a bug, but we decided to put effort into RTL8139 only if absolutely essential.
Thanks, Ronen.

Note You need to log in before you can comment on or make changes to this bug.