···8787struct learning_pkt {8888 u8 mac_dst[ETH_ALEN];8989 u8 mac_src[ETH_ALEN];9090- u16 type;9090+ __be16 type;9191 u8 padding[ETH_ZLEN - ETH_HLEN];9292};93939494struct arp_pkt {9595- u16 hw_addr_space;9696- u16 prot_addr_space;9595+ __be16 hw_addr_space;9696+ __be16 prot_addr_space;9797 u8 hw_addr_len;9898 u8 prot_addr_len;9999- u16 op_code;9999+ __be16 op_code;100100 u8 mac_src[ETH_ALEN]; /* sender hardware address */101101- u32 ip_src; /* sender IP address */101101+ __be32 ip_src; /* sender IP address */102102 u8 mac_dst[ETH_ALEN]; /* target hardware address */103103- u32 ip_dst; /* target IP address */103103+ __be32 ip_dst; /* target IP address */104104};105105#pragma pack()106106···582582}583583584584/* mark all clients using src_ip to be updated */585585-static void rlb_req_update_subnet_clients(struct bonding *bond, u32 src_ip)585585+static void rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip)586586{587587 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));588588 struct rlb_client_info *client_info;···12671267 struct ethhdr *eth_data;12681268 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));12691269 struct slave *tx_slave = NULL;12701270- static const u32 ip_bcast = 0xffffffff;12701270+ static const __be32 ip_bcast = htonl(0xffffffff);12711271 int hash_size = 0;12721272 int do_tx_balance = 1;12731273 u32 hash_index = 0;···13111311 hash_size = sizeof(ipv6_hdr(skb)->daddr);13121312 break;13131313 case ETH_P_IPX:13141314- if (ipx_hdr(skb)->ipx_checksum !=13151315- __constant_htons(IPX_NO_CHECKSUM)) {13141314+ if (ipx_hdr(skb)->ipx_checksum != IPX_NO_CHECKSUM) {13161315 /* something is wrong with this packet */13171316 do_tx_balance = 0;13181317 break;
+2-2
drivers/net/bonding/bond_alb.h
···6060 * -------------------------------------------------------------------------6161 */6262struct rlb_client_info {6363- u32 ip_src; /* the server IP address */6464- u32 ip_dst; /* the client IP address */6363+ __be32 ip_src; /* the server IP address */6464+ __be32 ip_dst; /* the client IP address */6565 u8 mac_dst[ETH_ALEN]; /* the client MAC address */6666 u32 next; /* The next Hash table entry index */6767 u32 prev; /* The previous Hash table entry index */