diff options
author | Amerigo Wang <amwang@redhat.com> | 2011-02-27 18:34:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 16:21:28 -0500 |
commit | e364a3416d81c7717dd642dc9b3ab132b7885f66 (patch) | |
tree | 4ca2bccdb3db1d08378da976f7e53e3ccfa426c8 | |
parent | 8da83f8e73a42fa3142843938aa1590b82acb6ec (diff) |
bonding: use the correct size for _simple_hash()
Clearly it should be the size of ->ip_dst here.
Although this is harmless, but it still reads odd.
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 5c6fba802f2b..9bc5de3e04a8 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -604,7 +604,7 @@ static struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bon | |||
604 | 604 | ||
605 | _lock_rx_hashtbl(bond); | 605 | _lock_rx_hashtbl(bond); |
606 | 606 | ||
607 | hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_src)); | 607 | hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst)); |
608 | client_info = &(bond_info->rx_hashtbl[hash_index]); | 608 | client_info = &(bond_info->rx_hashtbl[hash_index]); |
609 | 609 | ||
610 | if (client_info->assigned) { | 610 | if (client_info->assigned) { |