From 0bdb080c70495ea4efbed7661b4fe6100bd5adde Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Thu, 21 Feb 2019 10:23:08 +0100 Subject: Revert "backports: Remove unused parts" This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d. --- patches/0032-sriov_configure/igb_sriov_configure.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/0032-sriov_configure/igb_sriov_configure.patch (limited to 'patches/0032-sriov_configure/igb_sriov_configure.patch') diff --git a/patches/0032-sriov_configure/igb_sriov_configure.patch b/patches/0032-sriov_configure/igb_sriov_configure.patch new file mode 100644 index 00000000..77e5eac9 --- /dev/null +++ b/patches/0032-sriov_configure/igb_sriov_configure.patch @@ -0,0 +1,18 @@ +--- a/drivers/net/ethernet/intel/igb/igb_main.c ++++ b/drivers/net/ethernet/intel/igb/igb_main.c +@@ -7682,6 +7682,7 @@ static int igb_sriov_reinit(struct pci_d + return 0; + } + ++#if LINUX_VERSION_IS_GEQ(3,8,0) + static int igb_pci_disable_sriov(struct pci_dev *dev) + { + int err = igb_disable_sriov(dev); +@@ -7691,6 +7692,7 @@ static int igb_pci_disable_sriov(struct + + return err; + } ++#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */ + + static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs) + { -- cgit v1.2.3