PCI: Cache the VF device ID in the SR-IOV structure

Cache the VF device ID in the SR-IOV structure and use it instead of
reading it over and over from the PF config space capability.

Signed-off-by: Filippo Sironi <sironi@amazon.de>
[bhelgaas: rename to "vf_device" to match pci_dev->device]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
Filippo Sironi 2017-08-28 15:38:49 +02:00 • committed by Bjorn Helgaas
commit 3142d832af
2 changed files with 4 additions and 2 deletions