projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da83f8
)
bonding: use the correct size for _simple_hash()
author
Amerigo Wang
<amwang@redhat.com>
Sun, 27 Feb 2011 23:34:28 +0000
(23:34 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Feb 2011 21:21:28 +0000
(13:21 -0800)
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>
drivers/net/bonding/bond_alb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bonding/bond_alb.c
b/drivers/net/bonding/bond_alb.c
index 5c6fba802f2b759561ee6c9c0c44bd3ea761b2c6..9bc5de3e04a8375894e040cd3cb794a0fff5f90c 100644
(file)
--- 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
_lock_rx_hashtbl(bond);
- hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_
src
));
+ hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_
dst
));
client_info = &(bond_info->rx_hashtbl[hash_index]);
if (client_info->assigned) {