[libvirt] nodedev-dumpxml doesn't refresh supported offload NIC capabilities

Moshe Levi moshele at mellanox.com
Tue Jun 16 14:12:39 UTC 2015


Hi,

I was playing with the nodedev-dumpxml to see the supported offload NIC capabilities, and
It seem that if I disable one of offloading capabilities using ethtool command nodedev-dumpxml it still return
the feature as enabled. To get the correct offloading capabilities I have to restart libvirtd.
I was wandering if that is an expected behavior in lbivirt .

Please see example below with the rx capabilities disabled.

virsh # nodedev-dumpxml net_enp4s0_f4_52_14_11_73_81
<device>
  <name>net_enp4s0_f4_52_14_11_73_81</name>
  <path>/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/net/enp4s0</path>
  <parent>pci_0000_04_00_0</parent>
  <capability type='net'>
    <interface>enp4s0</interface>
    <address>f4:52:14:11:73:81</address>
    <link speed='40000' state='up'/>
    <feature name='rx'/>
    <feature name='tx'/>
    <feature name='sg'/>
    <feature name='tso'/>
    <feature name='gso'/>
    <feature name='gro'/>
    <feature name='rxvlan'/>
    <feature name='txvlan'/>
    <feature name='rxhash'/>
    <capability type='80203'/>
  </capability>
</device>
ethtool -K enp4s0 rx off
virsh # nodedev-dumpxml net_enp4s0_f4_52_14_11_73_81
<device>
  <name>net_enp4s0_f4_52_14_11_73_81</name>
  <path>/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/net/enp4s0</path>
  <parent>pci_0000_04_00_0</parent>
  <capability type='net'>
    <interface>enp4s0</interface>
    <address>f4:52:14:11:73:81</address>
    <link speed='40000' state='up'/>
    <feature name='rx'/>
    <feature name='tx'/>
    <feature name='sg'/>
    <feature name='tso'/>
    <feature name='gso'/>
    <feature name='gro'/>
    <feature name='rxvlan'/>
    <feature name='txvlan'/>
    <feature name='rxhash'/>
    <capability type='80203'/>
  </capability>
</device>


virsh #
[root at r-ae-host05 bin]# ps -ef | grep libvirt
root     16743 23086  0 16:43 pts/2    00:00:00 ../sbin/libvirtd
root     17440 23086  0 16:47 pts/2    00:00:00 grep --color=auto libvirt
[root at r-ae-host05 bin]# kill 16743
[root at r-ae-host05 bin]# ../sbin/libvirtd &
[2] 17489
[1]   Done                    ../sbin/libvirtd
[root at r-ae-host05 bin]#
[root at r-ae-host05 bin]#
[root at r-ae-host05 bin]# ./virsh

virsh # nodedev-dumpxml net_enp4s0_f4_52_14_11_73_81
<device>
  <name>net_enp4s0_f4_52_14_11_73_81</name>
  <path>/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/net/enp4s0</path>
  <parent>pci_0000_04_00_0</parent>
  <capability type='net'>
    <interface>enp4s0</interface>
    <address>f4:52:14:11:73:81</address>
    <link speed='40000' state='up'/>
    <feature name='tx'/>
    <feature name='sg'/>
    <feature name='tso'/>
    <feature name='gso'/>
    <feature name='gro'/>
    <feature name='rxvlan'/>
    <feature name='txvlan'/>
    <feature name='rxhash'/>
    <feature name='rdma'/>
    <capability type='80203'/>
  </capability>
</device>


Thanks,
                Moshe Levi.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150616/83543f06/attachment-0001.htm>


More information about the libvir-list mailing list