rhashtable: Move hash_rnd into bucket_table
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Mar 2015 22:27:55 +0000 (09:27 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Mar 2015 20:28:25 +0000 (16:28 -0400)
commit988dfbd795cf08b00576c1ced4210281b2bccffc
tree535e1fbd7224c49386a5de1a8afc16948078489e
parent0ddcf43d5d4a03ded1ee3f6b3b72a0cbed4e90b1
rhashtable: Move hash_rnd into bucket_table

Currently hash_rnd is a parameter that users can set.  However,
no existing users set this parameter.  It is also something that
people are unlikely to want to set directly since it's just a
random number.

In preparation for allowing the reseeding/rehashing of rhashtable,
this patch moves hash_rnd into bucket_table so that it's now an
internal state rather than a parameter.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c