mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<feature name='rxhash'/>
|
||||
<feature name='rdma'/>
|
||||
<feature name='txudptnl'/>
|
||||
<feature name='switchdev'/>
|
||||
<capability type='80211'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<feature name='rxhash'/>
|
||||
<feature name='rdma'/>
|
||||
<feature name='txudptnl'/>
|
||||
<feature name='switchdev'/>
|
||||
<capability type='80203'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
Reference in New Issue
Block a user