aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_alb.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-22 20:06:58 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:56 -0400
commitd3bb52b0948cf118131c951c5a34a2d4d0246171 (patch)
treee06f2029134bd0f6fae3cc99107191b55ef30ea4 /drivers/net/bonding/bond_alb.c
parentdd96df2cc2539ecd451614a2ffed4d8a4c541d92 (diff)
endianness annotations drivers/net/bonding/
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r--drivers/net/bonding/bond_alb.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
index 419a9f8fdd53..aea2217c56eb 100644
--- a/drivers/net/bonding/bond_alb.c
+++ b/drivers/net/bonding/bond_alb.c
@@ -87,20 +87,20 @@ static const int alb_delta_in_ticks = HZ / ALB_TIMER_TICKS_PER_SEC;
87struct learning_pkt { 87struct learning_pkt {
88 u8 mac_dst[ETH_ALEN]; 88 u8 mac_dst[ETH_ALEN];
89 u8 mac_src[ETH_ALEN]; 89 u8 mac_src[ETH_ALEN];
90 u16 type; 90 __be16 type;
91 u8 padding[ETH_ZLEN - ETH_HLEN]; 91 u8 padding[ETH_ZLEN - ETH_HLEN];
92}; 92};
93 93
94struct arp_pkt { 94struct arp_pkt {
95 u16 hw_addr_space; 95 __be16 hw_addr_space;
96 u16 prot_addr_space; 96 __be16 prot_addr_space;
97 u8 hw_addr_len; 97 u8 hw_addr_len;
98 u8 prot_addr_len; 98 u8 prot_addr_len;
99 u16 op_code; 99 __be16 op_code;
100 u8 mac_src[ETH_ALEN]; /* sender hardware address */ 100 u8 mac_src[ETH_ALEN]; /* sender hardware address */
101 u32 ip_src; /* sender IP address */ 101 __be32 ip_src; /* sender IP address */
102 u8 mac_dst[ETH_ALEN]; /* target hardware address */ 102 u8 mac_dst[ETH_ALEN]; /* target hardware address */
103 u32 ip_dst; /* target IP address */ 103 __be32 ip_dst; /* target IP address */
104}; 104};
105#pragma pack() 105#pragma pack()
106 106
@@ -582,7 +582,7 @@ static void rlb_req_update_slave_clients(struct bonding *bond, struct slave *sla
582} 582}
583 583
584/* mark all clients using src_ip to be updated */ 584/* mark all clients using src_ip to be updated */
585static void rlb_req_update_subnet_clients(struct bonding *bond, u32 src_ip) 585static void rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip)
586{ 586{
587 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); 587 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
588 struct rlb_client_info *client_info; 588 struct rlb_client_info *client_info;
@@ -1267,7 +1267,7 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)
1267 struct ethhdr *eth_data; 1267 struct ethhdr *eth_data;
1268 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); 1268 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1269 struct slave *tx_slave = NULL; 1269 struct slave *tx_slave = NULL;
1270 static const u32 ip_bcast = 0xffffffff; 1270 static const __be32 ip_bcast = htonl(0xffffffff);
1271 int hash_size = 0; 1271 int hash_size = 0;
1272 int do_tx_balance = 1; 1272 int do_tx_balance = 1;
1273 u32 hash_index = 0; 1273 u32 hash_index = 0;
@@ -1311,8 +1311,7 @@ int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)
1311 hash_size = sizeof(ipv6_hdr(skb)->daddr); 1311 hash_size = sizeof(ipv6_hdr(skb)->daddr);
1312 break; 1312 break;
1313 case ETH_P_IPX: 1313 case ETH_P_IPX:
1314 if (ipx_hdr(skb)->ipx_checksum != 1314 if (ipx_hdr(skb)->ipx_checksum != IPX_NO_CHECKSUM) {
1315 __constant_htons(IPX_NO_CHECKSUM)) {
1316 /* something is wrong with this packet */ 1315 /* something is wrong with this packet */
1317 do_tx_balance = 0; 1316 do_tx_balance = 0;
1318 break; 1317 break;