d31c61eda6c460e7ebdae7a1598c3c91219d4d9d
[deb_dpdk.git] / debian / patches / ubuntu-fix-bond-symbol-export.patch
1 Description: librte_bond: fix exported symbols
2
3 The ABI changed in 16.07, but with compat to former 2.0 in place.
4 This was accidentially exported as 16.04 instead of 2.0 symbol.
5
6 Forwarded: yes
7 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
8 Last-Update: 2016-07-06
9
10 Index: deb_dpdk/drivers/net/bonding/rte_eth_bond_8023ad.c
11 ===================================================================
12 --- deb_dpdk.orig/drivers/net/bonding/rte_eth_bond_8023ad.c
13 +++ deb_dpdk/drivers/net/bonding/rte_eth_bond_8023ad.c
14 @@ -1068,7 +1068,7 @@ bond_mode_8023ad_conf_assign(struct mode
15  }
16  
17  static void
18 -bond_mode_8023ad_setup_v1604(struct rte_eth_dev *dev,
19 +bond_mode_8023ad_setup_v20(struct rte_eth_dev *dev,
20                 struct rte_eth_bond_8023ad_conf *conf)
21  {
22         struct rte_eth_bond_8023ad_conf def_conf;
23 @@ -1214,7 +1214,7 @@ free_out:
24  }
25  
26  int
27 -rte_eth_bond_8023ad_conf_get_v1604(uint8_t port_id,
28 +rte_eth_bond_8023ad_conf_get_v20(uint8_t port_id,
29                 struct rte_eth_bond_8023ad_conf *conf)
30  {
31         struct rte_eth_dev *bond_dev;
32 @@ -1229,7 +1229,7 @@ rte_eth_bond_8023ad_conf_get_v1604(uint8
33         bond_mode_8023ad_conf_get(bond_dev, conf);
34         return 0;
35  }
36 -VERSION_SYMBOL(rte_eth_bond_8023ad_conf_get, _v1604, 16.04);
37 +VERSION_SYMBOL(rte_eth_bond_8023ad_conf_get, _v20, 2.0);
38  
39  int
40  rte_eth_bond_8023ad_conf_get_v1607(uint8_t port_id,
41 @@ -1278,7 +1278,7 @@ bond_8023ad_setup_validate(uint8_t port_
42  }
43  
44  int
45 -rte_eth_bond_8023ad_setup_v1604(uint8_t port_id,
46 +rte_eth_bond_8023ad_setup_v20(uint8_t port_id,
47                 struct rte_eth_bond_8023ad_conf *conf)
48  {
49         struct rte_eth_dev *bond_dev;
50 @@ -1289,11 +1289,11 @@ rte_eth_bond_8023ad_setup_v1604(uint8_t
51                 return err;
52  
53         bond_dev = &rte_eth_devices[port_id];
54 -       bond_mode_8023ad_setup_v1604(bond_dev, conf);
55 +       bond_mode_8023ad_setup_v20(bond_dev, conf);
56  
57         return 0;
58  }
59 -VERSION_SYMBOL(rte_eth_bond_8023ad_setup, _v1604, 16.04);
60 +VERSION_SYMBOL(rte_eth_bond_8023ad_setup, _v20, 2.0);
61  
62  int
63  rte_eth_bond_8023ad_setup_v1607(uint8_t port_id,