diff options
Diffstat (limited to 'common/recipes-extended/dpdk/dpdk/dpdk-16.07-kni-fix-build-with-kernel-4.8.patch')
-rw-r--r-- | common/recipes-extended/dpdk/dpdk/dpdk-16.07-kni-fix-build-with-kernel-4.8.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/common/recipes-extended/dpdk/dpdk/dpdk-16.07-kni-fix-build-with-kernel-4.8.patch b/common/recipes-extended/dpdk/dpdk/dpdk-16.07-kni-fix-build-with-kernel-4.8.patch new file mode 100644 index 00000000..f7938c78 --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk/dpdk-16.07-kni-fix-build-with-kernel-4.8.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | From d1807cc225db36a467a9ae81ac23a6eb7368730e Mon Sep 17 00:00:00 2001 | ||
2 | From: Ferruh Yigit <ferruh.yigit@intel.com> | ||
3 | Date: Thu, 8 Sep 2016 19:32:09 +0100 | ||
4 | Subject: [PATCH 3/3] kni: fix build with kernel 4.8 | ||
5 | |||
6 | Upstream-Status: Backport [http://dpdk.org/browse/dpdk/commit/?id= | ||
7 | 7f5565592c5ab2f3541951d2b4e65188d01d5d00] | ||
8 | |||
9 | Linux kernel v4.8 removes macro DEFINE_PCI_DEVICE_TABLE | ||
10 | |||
11 | Linux: 7e9321599011 ("treewide: remove references to the now unnecessary | ||
12 | DEFINE_PCI_DEVICE_TABLE") | ||
13 | |||
14 | Replaced macro with its value in kni ethtool drivers. | ||
15 | |||
16 | Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> | ||
17 | Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> | ||
18 | Acked-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> | ||
19 | Acked-by: Stephen Hemminger <stephen@networkplumber.org> | ||
20 | (cherry picked from commit 7f5565592c5ab2f3541951d2b4e65188d01d5d00) | ||
21 | Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
22 | --- | ||
23 | lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | 2 +- | ||
24 | lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | 2 +- | ||
25 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
26 | |||
27 | diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | ||
28 | index bd803c0..efd39c6 100644 | ||
29 | --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | ||
30 | +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | ||
31 | @@ -76,7 +76,7 @@ static const char igb_driver_string[] = | ||
32 | static const char igb_copyright[] = | ||
33 | "Copyright (c) 2007-2013 Intel Corporation."; | ||
34 | |||
35 | -DEFINE_PCI_DEVICE_TABLE(igb_pci_tbl) = { | ||
36 | +const struct pci_device_id igb_pci_tbl[] = { | ||
37 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_1GBPS) }, | ||
38 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_SGMII) }, | ||
39 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_2_5GBPS) }, | ||
40 | diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | ||
41 | index 92fc9fc..238028d 100644 | ||
42 | --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | ||
43 | +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | ||
44 | @@ -86,7 +86,7 @@ const char ixgbe_driver_version[] = DRV_VERSION; | ||
45 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, | ||
46 | * Class, Class Mask, private data (not used) } | ||
47 | */ | ||
48 | -DEFINE_PCI_DEVICE_TABLE(ixgbe_pci_tbl) = { | ||
49 | +const struct pci_device_id ixgbe_pci_tbl[] = { | ||
50 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598)}, | ||
51 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_DUAL_PORT)}, | ||
52 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_SINGLE_PORT)}, | ||
53 | -- | ||
54 | 1.9.1 | ||
55 | |||