mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
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>
22 lines
565 B
XML
22 lines
565 B
XML
<device>
|
|
<name>net_00_15_58_2f_e9_55</name>
|
|
<parent>pci_8086_109a</parent>
|
|
<capability type='net'>
|
|
<interface>eth1</interface>
|
|
<address>00:15:58:2f:e9:55</address>
|
|
<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'/>
|
|
<feature name='rdma'/>
|
|
<feature name='txudptnl'/>
|
|
<feature name='switchdev'/>
|
|
<capability type='80203'/>
|
|
</capability>
|
|
</device>
|