mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
8da83f8e73
commit
e364a3416d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user