9275147259ebab49299a5d5748b0c49c97f8e94c
[deb_dpdk.git] / debian / patches / dpdk-dev-v2-kni-fix-build-with-kernel-4.8.patch
1 Description: Linux kernel v4.8 removes macro DEFINE_PCI_DEVICE_TABLE
2
3 Linux: 7e9321599011 ("treewide: remove references to the now unnecessary
4 DEFINE_PCI_DEVICE_TABLE")
5
6 Replaced macro with its value in kni ethtool drivers.
7
8 Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
9
10 Origin: Upstream, http://dpdk.org/dev/patchwork/patch/15717/
11 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
12 Last-Update: 2016-09-19
13
14 --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
15 +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
16 @@ -76,7 +76,7 @@
17  static const char igb_copyright[] =
18                                 "Copyright (c) 2007-2013 Intel Corporation.";
19  
20 -static DEFINE_PCI_DEVICE_TABLE(igb_pci_tbl) = {
21 +const struct pci_device_id igb_pci_tbl[] = {
22         { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_1GBPS) },
23         { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_SGMII) },
24         { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_2_5GBPS) },
25 --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c
26 +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c
27 @@ -86,7 +86,7 @@
28   * { Vendor ID, Device ID, SubVendor ID, SubDevice ID,
29   *   Class, Class Mask, private data (not used) }
30   */
31 -DEFINE_PCI_DEVICE_TABLE(ixgbe_pci_tbl) = {
32 +const struct pci_device_id ixgbe_pci_tbl[] = {
33         {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598)},
34         {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_DUAL_PORT)},
35         {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_SINGLE_PORT)},