]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: Cache the VF device ID in the SR-IOV structure
authorFilippo Sironi <sironi@amazon.de>
Mon, 28 Aug 2017 13:38:49 +0000 (15:38 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Oct 2017 20:54:58 +0000 (15:54 -0500)
commit3142d832af10d8cd456cdec5aa72da1c8572f557
treee1fe7851ee4473ce801ea5bd348228843aa2ac83
parentad581f869e809e727e7d57a07c81f349221a4276
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>
drivers/pci/iov.c
drivers/pci/pci.h