Files
nova/nova/network
Ludovic Beliveau 53ab6068a3 Don't parse PCI whitelist every time neutron ports are created
The neutronv2 API is calling the method get_pci_device_devspec()
everytime a neutron port is created in order to get a PciDeviceSpec for a given
PCI device.  This method creates a new Whitelist (based on the config
CONF.pci_passthrough_whitelist) and parses it every time it is called.  This
is not a huge overhead but this is obvioulsy not needed and a waste of cycles.

Since only neutronv2 API uses get_pci_device_devspec(), this commit removes
the method in favor of using the Whitelist object directly (like it is done
in the PciDevTracker).

Change-Id: Idee4e9edecff0672680f323a916201aee8eeeabd
Closes-Bug: #1598843
2016-11-04 14:23:40 +00:00
..
2016-06-27 15:23:00 +08:00
2014-02-03 14:19:44 +00:00