mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
ipv4: Use universal hash for ARP.
We need to make sure the multiplier is odd. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cd0893369c
commit
f610b74b14
3 changed files with 9 additions and 2 deletions
|
@ -97,7 +97,6 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/net.h>
|
||||
#include <linux/rcupdate.h>
|
||||
#include <linux/jhash.h>
|
||||
#include <linux/slab.h>
|
||||
#ifdef CONFIG_SYSCTL
|
||||
#include <linux/sysctl.h>
|
||||
|
@ -232,7 +231,7 @@ static u32 arp_hash(const void *pkey,
|
|||
const struct net_device *dev,
|
||||
__u32 hash_rnd)
|
||||
{
|
||||
return jhash_2words(*(u32 *)pkey, dev->ifindex, hash_rnd);
|
||||
return arp_hashfn(*(u32 *)pkey, dev, hash_rnd);
|
||||
}
|
||||
|
||||
static int arp_constructor(struct neighbour *neigh)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue