diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-11 04:37:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-11 04:37:28 -0400 |
commit | f610b74b14d74a069f61583131e689550fd5bab3 (patch) | |
tree | 331ce90858ed17ed32b27ff9b283ced43566ea28 /net/ipv4 | |
parent | cd0893369ca85fd11bc517081b2d9079d2ef2f90 (diff) |
ipv4: Use universal hash for ARP.
We need to make sure the multiplier is odd.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/arp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 1b74d3b64371..4412b57f6ff6 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -97,7 +97,6 @@ | |||
97 | #include <linux/init.h> | 97 | #include <linux/init.h> |
98 | #include <linux/net.h> | 98 | #include <linux/net.h> |
99 | #include <linux/rcupdate.h> | 99 | #include <linux/rcupdate.h> |
100 | #include <linux/jhash.h> | ||
101 | #include <linux/slab.h> | 100 | #include <linux/slab.h> |
102 | #ifdef CONFIG_SYSCTL | 101 | #ifdef CONFIG_SYSCTL |
103 | #include <linux/sysctl.h> | 102 | #include <linux/sysctl.h> |
@@ -232,7 +231,7 @@ static u32 arp_hash(const void *pkey, | |||
232 | const struct net_device *dev, | 231 | const struct net_device *dev, |
233 | __u32 hash_rnd) | 232 | __u32 hash_rnd) |
234 | { | 233 | { |
235 | return jhash_2words(*(u32 *)pkey, dev->ifindex, hash_rnd); | 234 | return arp_hashfn(*(u32 *)pkey, dev, hash_rnd); |
236 | } | 235 | } |
237 | 236 | ||
238 | static int arp_constructor(struct neighbour *neigh) | 237 | static int arp_constructor(struct neighbour *neigh) |