diff options
Diffstat (limited to 'patches/0032-sriov_configure')
-rw-r--r-- | patches/0032-sriov_configure/igb_sriov_configure.patch | 18 |
1 files changed, 18 insertions, 0 deletions
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) + { |