[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141209.180959.500105903540817044.davem@davemloft.net>
Date: Tue, 09 Dec 2014 18:09:59 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dborkman@...hat.com
Cc: netdev@...r.kernel.org, herbert@...dor.apana.org.au, tgraf@...g.ch,
hannes@...essinduktion.org
Subject: Re: [PATCH net] netlink: use jhash as hashfn for rhashtable
From: Daniel Borkmann <dborkman@...hat.com>
Date: Tue, 09 Dec 2014 23:56:40 +0100
> we thought it was useful in that area as it needs less than half the
> cycles (all discussed in [1]) as opposed to jhash for computing the
> hash value in ovs, where such computations are being done very
> frequently and the flow key structure size seems to keep growing.
If that is the case, you could instead come up with a portable C hash
function that doesn't require jumping through hoops to use special CPU
instructions yet still has the better performance you're looking for.
Heck, if attackability isn't an issue, plain ole 'xor' over the u32's
of the key is sufficient and in fact is what our TCP socket hash used
to be before jhash.
> Anyway, if you feel strong about it, lets just remove it.
Please do.
--
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