From patchwork Wed Oct 3 17:51:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/5] PCI: add set_max_vfs in pci_driver ops Date: Wed, 03 Oct 2012 07:51:33 -0000 From: Yinghai Lu X-Patchwork-Id: 188880 Message-Id: <1349286695-26713-4-git-send-email-yinghai@kernel.org> To: Bjorn Helgaas , Greg Kroah-Hartman Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Don Dutile , yuvalmin@broadcom.com, bhutchings@solarflare.com, gregory.v.rose@intel.com, davem@davemloft.net--no-chain-reply-to, Yinghai Lu Will use it enable sriov for pci devices. Signed-off-by: Yinghai Lu --- include/linux/pci.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index be1de01..7d70a5e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -590,6 +590,7 @@ struct pci_driver { const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ + void (*set_max_vfs) (struct pci_dev *dev); /* enable sriov */ int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */ int (*suspend_late) (struct pci_dev *dev, pm_message_t state); int (*resume_early) (struct pci_dev *dev);