]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
SRIOV NIC offload feature discovery
authorJames Chapman <james.p.chapman@intel.com>
Mon, 23 Feb 2015 15:38:29 +0000 (15:38 +0000)
committerJán Tomko <jtomko@redhat.com>
Thu, 5 Mar 2015 10:31:05 +0000 (11:31 +0100)
commitc9027d8f44f9f66a0aa98482258e88567fccb954
tree66d530b903e7121ca78e6b55f935040f5a900e9f
parent6954e7da52fa342ca137d1c84eed07136b3031c3
SRIOV NIC offload feature discovery

Adding functionality to libvirt that will allow it
query the ethtool interface for the availability
of certain NIC HW offload features

Here is an example of the feature XML definition:

<device>
<name>net_eth4_90_e2_ba_5e_a5_45</name>
  <path>/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.1/net/eth4</path>
  <parent>pci_0000_08_00_1</parent>
  <capability type='net'>
    <interface>eth4</interface>
    <address>90:e2:ba:5e:a5:45</address>
    <link speed='10000' 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>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
12 files changed:
docs/formatnode.html.in
docs/schemas/nodedev.rng
src/conf/device_conf.c
src/conf/device_conf.h
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/libvirt_private.syms
src/node_device/node_device_udev.c
src/util/virnetdev.c
src/util/virnetdev.h
tests/nodedevschemadata/net_00_13_02_b9_f9_d3.xml
tests/nodedevschemadata/net_00_15_58_2f_e9_55.xml