As part of adding support for bandwidth based scheduling
I038867c4094d79ae4a20615ab9c9f9e38fcc2e0a introduced
automatic discovery of parent netdev names for PCIe
virtual functions.
Nova's PCI passthrough support was originally developed for
Intel QAT devices and other generic PCI devices. Later support
for Neutron based SR-IOV NIC was added.
The PCI-SIG SR-IOV specification while most often used by NIC
vendors to virtualise a NIC in hardware was designed for devices
of any PCIe class. Support for Intel's QAT device and other
accelerators like AMD's SRIOV based vGPU have therefore been
regressed by the introduction of the new parent_ifname lookup code.
This change simply catches the exception that would be raised
when pci_utils.get_ifname_by_pci_address is called on generic
VFs allowing a graceful fallback to the previous behaviour.
Change-Id: Ib3811f828246311d90b0e3ba71c162c03fb8fe5a
Closes-Bug: #1821938
(cherry picked from commit e7ae6c65cd24fb3e0776fac80fbab2ab16e9d9ed)
Reviewed: https:/ /review. openstack. org/649630 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=97a806b7900 d9e55ad15c10184 d2bd48f23efff0
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 97a806b7900d9e5 5ad15c10184d2bd 48f23efff0
Author: Sean Mooney <email address hidden>
Date: Tue Apr 2 18:27:24 2019 +0100
Libvirt: gracefully handle non-nic VFs
As part of adding support for bandwidth based scheduling 4d79ae4a20615ab 9c9f9e38fcc2e0a introduced
I038867c409
automatic discovery of parent netdev names for PCIe
virtual functions.
Nova's PCI passthrough support was originally developed for
Intel QAT devices and other generic PCI devices. Later support
for Neutron based SR-IOV NIC was added.
The PCI-SIG SR-IOV specification while most often used by NIC
vendors to virtualise a NIC in hardware was designed for devices
of any PCIe class. Support for Intel's QAT device and other
accelerators like AMD's SRIOV based vGPU have therefore been
regressed by the introduction of the new parent_ifname lookup code.
This change simply catches the exception that would be raised get_ifname_ by_pci_ address is called on generic
when pci_utils.
VFs allowing a graceful fallback to the previous behaviour.
Change-Id: Ib3811f82824631 1d90b0e3ba71c16 2c03fb8fe5a e0776fac80fbab2 ab16e9d9ed)
Closes-Bug: #1821938
(cherry picked from commit e7ae6c65cd24fb3