[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150322225104.GA8853@gondor.apana.org.au>
Date: Mon, 23 Mar 2015 09:51:04 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Roland Dreier <roland@...estorage.com>
Subject: Re: arp_hash
On Mon, Mar 23, 2015 at 08:56:12AM +1100, Herbert Xu wrote:
> On Sun, Mar 22, 2015 at 05:56:21AM -0700, Eric Dumazet wrote:
> > On Sun, 2015-03-22 at 22:42 +1100, Herbert Xu wrote:
> > >
> > > While googling I found the 2011 discussion on changing the arp_hash
> > > function. I must say that I'm not really impressed by the new
> > > function that replaced jhash :)
> > >
> > > u32 key = *(const u32 *)pkey;
> > > u32 val = key ^ hash32_ptr(dev);
> > >
> > > return val * hash_rnd[0];
>
> In fact this function is worse than I thought. Because the IP
OK I'm wrong because net/core/neighbour.c uses only the high-order
bits of the hash.
Sorry for the noise.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists