diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-30 13:28:15 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-19 13:28:44 -0500 |
| commit | 46cb7b1bd86fc227a5325ba8fa4c8be70fade4e8 (patch) | |
| tree | 82cb240fb2b8ec89249c0b428586cf742407bb66 /include/linux/pci.h | |
| parent | 4b180d97b124a53e9fdd7fae977c856d54c1d196 (diff) | |
PCI: Remove unused SR-IOV VF Migration support
This reverts commit 74bb1bcc7dbb ("PCI: handle SR-IOV Virtual Function
Migration"), removing this exported interface:
pci_sriov_migration()
Since pci_sriov_migration() is unused, it is impossible to schedule
sriov_migration_task() or use any of the other migration infrastructure.
This is based on Stephen Hemminger's patch (see link below), but goes a bit
further.
Link: http://lkml.kernel.org/r/20131227132710.7190647c@nehalam.linuxnetplumber.net
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index fb57c892b214..230a8dabc5a3 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -29,7 +29,6 @@ | |||
| 29 | #include <linux/atomic.h> | 29 | #include <linux/atomic.h> |
| 30 | #include <linux/device.h> | 30 | #include <linux/device.h> |
| 31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
| 32 | #include <linux/irqreturn.h> | ||
| 33 | #include <uapi/linux/pci.h> | 32 | #include <uapi/linux/pci.h> |
| 34 | 33 | ||
| 35 | #include <linux/pci_ids.h> | 34 | #include <linux/pci_ids.h> |
| @@ -1577,7 +1576,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); | |||
| 1577 | #ifdef CONFIG_PCI_IOV | 1576 | #ifdef CONFIG_PCI_IOV |
| 1578 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); | 1577 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); |
| 1579 | void pci_disable_sriov(struct pci_dev *dev); | 1578 | void pci_disable_sriov(struct pci_dev *dev); |
| 1580 | irqreturn_t pci_sriov_migration(struct pci_dev *dev); | ||
| 1581 | int pci_num_vf(struct pci_dev *dev); | 1579 | int pci_num_vf(struct pci_dev *dev); |
| 1582 | int pci_vfs_assigned(struct pci_dev *dev); | 1580 | int pci_vfs_assigned(struct pci_dev *dev); |
| 1583 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); | 1581 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); |
| @@ -1586,8 +1584,6 @@ int pci_sriov_get_totalvfs(struct pci_dev *dev); | |||
| 1586 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) | 1584 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) |
| 1587 | { return -ENODEV; } | 1585 | { return -ENODEV; } |
| 1588 | static inline void pci_disable_sriov(struct pci_dev *dev) { } | 1586 | static inline void pci_disable_sriov(struct pci_dev *dev) { } |
| 1589 | static inline irqreturn_t pci_sriov_migration(struct pci_dev *dev) | ||
| 1590 | { return IRQ_NONE; } | ||
| 1591 | static inline int pci_num_vf(struct pci_dev *dev) { return 0; } | 1587 | static inline int pci_num_vf(struct pci_dev *dev) { return 0; } |
| 1592 | static inline int pci_vfs_assigned(struct pci_dev *dev) | 1588 | static inline int pci_vfs_assigned(struct pci_dev *dev) |
| 1593 | { return 0; } | 1589 | { return 0; } |
