rhashtable: abstract out function to get hash
authorTom Herbert <tom@quantonium.net>
Mon, 4 Dec 2017 18:31:43 +0000 (10:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 14:58:38 +0000 (09:58 -0500)
commit2b86093135d014624f668658e1636f22a3027fc2
tree20589b1f38ef6c5a12d38bfe2c923c4d519ab64f
parent2db54b475ae918d274bfc276416c384ba95e9f94
rhashtable: abstract out function to get hash

Split out most of rht_key_hashfn which is calculating the hash into
its own function. This way the hash function can be called separately to
get the hash value.

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h