Bug 645646

Summary: RFE: Virtio nic should be support "ethtool -i virtio nic"
Product: Red Hat Enterprise Linux 5 Reporter: juzhang <juzhang>
Component: kernelAssignee: Laszlo Ersek <lersek>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.6CC: dtian, ehabkost, hjia, jyang, lersek, liko, michen, mkenneth, qcai, virt-maint, ykaul
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 647196 (view as bug list) Environment:
Last Closed: 2011-07-21 10:27:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 580946, 647196    
Attachments:
Description Flags
add get_drvinfo() to virtio_net none

Description juzhang 2010-10-22 06:27:08 UTC
Description of problem:
If boot guest with model=virtio.after boot guest,in guest issue the following commands:
#ethtool -i eth0
Cannot get driver information: Operation not supported

Version-Release number of selected component (if applicable):
#uname -r
2.6.18-227.el5

#rpm -qa | grep kvm
etherboot-roms-kvm-5.4.4-13.el5
kvm-tools-83-205.el5
etherboot-zroms-kvm-5.4.4-13.el5
kvm-qemu-img-83-205.el5
kvm-debuginfo-83-205.el5
kvm-83-205.el5
kmod-kvm-83-205.el5


How reproducible:


Steps to Reproduce:
1.Boot guest with model=virtio
2.In guest,issue the "ethtool -i eth0"

  
Actual results:
#ethtool -i eth0
Cannot get driver information: Operation not supported

Expected results:
Like e1000 or rtl8139 nic
#ethtool -i eth0
driver: 8139cp
version: 1.3
firmware-version: 
bus-info: 0000:00:03.0


Additional info:

Comment 1 Laszlo Ersek 2010-10-27 14:11:26 UTC
Created attachment 455985 [details]
add get_drvinfo() to virtio_net

Before:

    # uname -r
    2.6.18-194.el5

    # ethtool  -i eth0
    Cannot get driver information: Operation not supported

After:

    # uname -r
    2.6.18-228.el5.rhel5_virtio_net_drvinfo_v2

    # ethtool  -i eth0
    driver: virtio_net
    version: 
    firmware-version: 
    bus-info: virtio0

Comment 2 Eduardo Habkost 2010-11-26 15:02:00 UTC
This is not a KVM BZ. The patch is for the kernel package, not kvm.

Comment 7 Jarod Wilson 2011-02-09 14:56:38 UTC
in kernel-2.6.18-243.el5
You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 13 juzhang 2011-05-18 07:55:37 UTC
Verified in 2.6.18-259.el5

Boot guest with virtio-net

#in guest
ethtool  -i eth0
driver: virtio_net
version: 
firmware-version: 
bus-info: virtio1


this issue has been fixed.

Comment 14 juzhang 2011-05-18 07:56:46 UTC
According to comment13,set this issue as verified.

Comment 21 errata-xmlrpc 2011-07-21 10:27:04 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1065.html