summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-10-20 11:45:35 -0500
committerBjorn Helgaas <bhelgaas@google.com>2018-10-20 11:45:35 -0500
commiteff81b6f7b1ecad7e8cdf4f44b010b54ef438864 (patch)
tree6231f738f74be610a1c649baf96f87a694436449 /drivers/pci/pci.h
parent1734715493e010d034ae8d65c9a228ee7ad24a08 (diff)
parent4c243716e77d4f54e37834757ee5067e56099219 (diff)
downloadlinux-eff81b6f7b1ecad7e8cdf4f44b010b54ef438864.tar.bz2
Merge branch 'pci/virtualization'
- Cache VF config space size to optimize enumeration of many VFs (KarimAllah Ahmed) - Remove unnecessary <linux/pci-ats.h> include (Bjorn Helgaas) * pci/virtualization: PCI/IOV: Remove unnecessary include of <linux/pci-ats.h> PCI/IOV: Use VF0 cached config space size for other VFs
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 672ba4d1659e..662b7457db23 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -290,6 +290,7 @@ struct pci_sriov {
u16 driver_max_VFs; /* Max num VFs driver supports */
struct pci_dev *dev; /* Lowest numbered PF */
struct pci_dev *self; /* This PF */
+ u32 cfg_size; /* VF config space size */
u32 class; /* VF device */
u8 hdr_type; /* VF header type */
u16 subsystem_vendor; /* VF subsystem vendor */