]> git.baikalelectronics.ru Git - kernel.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)
commit1078757d70a3301ec9bbea0e8d2b73860fbc86b3
treee1fe7851ee4473ce801ea5bd348228843aa2ac83
parentecc45fee955ecce5c53e5aa5c0ef52f367ec7d04
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