aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-26 02:21:10 +0200
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-29 17:14:47 +0200
commitdd706e55bd613143a68e2958a0616fd9d9c9f516 (patch)
treee72d42b12cffe33d2110cdbaf1f9fc5ae64cdf47 /include
parentrhashtable: Change the seed to 128 bits (diff)
downloadlinux-dev-dd706e55bd613143a68e2958a0616fd9d9c9f516.tar.xz
linux-dev-dd706e55bd613143a68e2958a0616fd9d9c9f516.zip
rhashtable: Introduce wrapper for SipHashjn/rhashtable-api
In order to make SipHash convenient to use with rhashtable, implement rhashtable_siphash, which can be specified as .hashfn in struct rhashtable_params. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/rhashtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 063e7fa7e9ca..262f3186c368 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -123,6 +123,7 @@ typedef int (*rht_obj_cmpfn_t)(struct rhashtable_compare_arg *arg,
u32 rhashtable_jhash(const void *key, u32 length, struct rhash_rnd seed);
u32 rhashtable_jhash2(const void *key, u32 length, struct rhash_rnd seed);
+u32 rhashtable_siphash(const void *key, u32 length, struct rhash_rnd seed);
struct rhashtable;