[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070220112312.GA665@2ka.mipt.ru>
Date: Tue, 20 Feb 2007 14:23:13 +0300
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: Eric Dumazet <dada1@...mosbay.com>
Cc: David Miller <davem@...emloft.net>, akepner@....com,
linux@...izon.com, netdev@...r.kernel.org, bcrl@...ck.org
Subject: Re: Extensible hashing and RCU
On Tue, Feb 20, 2007 at 12:10:22PM +0100, Eric Dumazet (dada1@...mosbay.com) wrote:
> Please explain why you chose h = jhash_2words(faddr, laddr, ports);
> h ^= h >> 16;
> h ^= h >> 8;
>
> jhash is very good, no need to try to be smarter, shufling some bytes... and
> adding artifacts.
If distribution is fair its whift produces still fair distribution.
In the discussion linked at that test I also produced results without
shifts, which were exactly the same.
--
Evgeniy Polyakov
-
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