1 Description: Fix ppc64le build error between altivec and bool
3 We really hope there will eventually be a better fix for this, but currently
4 we have to unbreak building this code so until something better is available
5 let's use this modification.
8 Forward-info: http://mails.dpdk.org/archives/dev/2018-August/109926.html
9 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
10 Last-Update: 2018-08-22
11 --- a/drivers/net/mlx5/mlx5_nl.c
12 +++ b/drivers/net/mlx5/mlx5_nl.c
13 @@ -834,8 +834,8 @@ mlx5_nl_switch_info_cb(struct nlmsghdr *
16 size_t off = NLMSG_LENGTH(sizeof(struct ifinfomsg));
17 - bool port_name_set = false;
18 - bool switch_id_set = false;
19 + int port_name_set = 0;
20 + int switch_id_set = 0;
22 if (nh->nlmsg_type != RTM_NEWLINK)
24 @@ -854,7 +854,7 @@ mlx5_nl_switch_info_cb(struct nlmsghdr *
26 (size_t)(end - (char *)payload) != strlen(payload))
28 - port_name_set = true;
31 case IFLA_PHYS_SWITCH_ID:
33 @@ -862,7 +862,7 @@ mlx5_nl_switch_info_cb(struct nlmsghdr *
35 info.switch_id |= ((uint8_t *)payload)[i];
37 - switch_id_set = true;
41 off += RTA_ALIGN(ra->rta_len);
42 --- a/drivers/net/mlx5/mlx5_ethdev.c
43 +++ b/drivers/net/mlx5/mlx5_ethdev.c
44 @@ -1335,8 +1335,8 @@ mlx5_sysfs_switch_info(unsigned int ifin
45 char ifname[IF_NAMESIZE];
47 struct mlx5_switch_info data = { .master = 0, };
48 - bool port_name_set = false;
49 - bool port_switch_id_set = false;
50 + int port_name_set = 0;
51 + int port_switch_id_set = 0;
54 if (!if_indextoname(ifindex, ifname)) {
55 --- a/drivers/net/mlx5/mlx5_nl_flow.c
56 +++ b/drivers/net/mlx5/mlx5_nl_flow.c
57 @@ -385,11 +385,11 @@ mlx5_nl_flow_transpose(void *buf,
58 const struct rte_flow_action *action;
60 uint32_t act_index_cur;
61 - bool in_port_id_set;
64 - bool vlan_eth_type_set;
69 + int vlan_eth_type_set;
71 struct nlattr *na_flower;
72 struct nlattr *na_flower_act;
73 struct nlattr *na_vlan_id;
74 @@ -404,11 +404,11 @@ init:
78 - in_port_id_set = false;
79 - eth_type_set = false;
80 - vlan_present = false;
81 - vlan_eth_type_set = false;
82 - ip_proto_set = false;
86 + vlan_eth_type_set = 0;