]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: add switchdev to NIC capabilities
authorEdan David <edand@mellanox.com>
Mon, 21 Aug 2017 09:19:53 +0000 (05:19 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 18 Sep 2017 12:32:24 +0000 (08:32 -0400)
commit8708ca01c0dd38764cad3e483405bdeb05ac2e96
treeb54fa366e67afb05ea5f62d393b597f16330651b
parent8703813aae3de35c2042e26dc1c9556783156529
nodedev: add switchdev to NIC capabilities

Adding functionality to libvirt that will allow querying the interface
for the availability of switchdev Offloading NIC capabilities.

The switchdev mode was introduced in kernel 4.8, the iproute2-devlink
command to retrieve the switchdev NIC feature with command example:

    devlink dev eswitch show pci/0000:03:00.0

This feature is needed for Openstack so we can do a scheduling decision
if the NIC is in Hardware Offload (switchdev) or regular SR-IOV (legacy) mode.
And select the appropriate hypervisors with the requested capability see [1].

[1] - https://specs.openstack.org/openstack/nova-specs/specs/pike/approved/enable-sriov-nic-features.html

Reviewed-by: Laine Stump <laine@laine.org>
Reviewed-by: John Ferlan <jferlan@redhat.com>
configure.ac
docs/formatnode.html.in
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