summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas2018-10-20 18:45:35 +0200
committerBjorn Helgaas2018-10-20 18:45:35 +0200
commiteff81b6f7b1ecad7e8cdf4f44b010b54ef438864 (patch)
tree6231f738f74be610a1c649baf96f87a694436449 /drivers/pci/pci.h
parentMerge branch 'pci/peer-to-peer' (diff)
parentPCI/IOV: Remove unnecessary include of <linux/pci-ats.h> (diff)
downloadkernel-qcow2-linux-eff81b6f7b1ecad7e8cdf4f44b010b54ef438864.tar.gz
kernel-qcow2-linux-eff81b6f7b1ecad7e8cdf4f44b010b54ef438864.tar.xz
kernel-qcow2-linux-eff81b6f7b1ecad7e8cdf4f44b010b54ef438864.zip
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 */