summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-23 13:50:24 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-03-24 02:07:51 (GMT)
commit6d022949810b1ea82d46a576d6166035720bbb32 (patch)
tree2c1984dba41fdb678504fb4201bec87f25b9b98b /net/tipc
parent11b58ba146ccd7b105c4962c75f2e744053c85bc (diff)
downloadlinux-6d022949810b1ea82d46a576d6166035720bbb32.tar.xz
tipc: Use default rhashtable hashfn
This patch removes the explicit jhash value for the hashfn parameter of rhashtable. The default is now jhash so removing the setting makes no difference apart from making one less copy of jhash in the kernel. 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>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/socket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 73c2f51..6dd5bd9 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -35,7 +35,6 @@
*/
#include <linux/rhashtable.h>
-#include <linux/jhash.h>
#include "core.h"
#include "name_table.h"
#include "node.h"
@@ -2294,7 +2293,6 @@ static const struct rhashtable_params tsk_rht_params = {
.head_offset = offsetof(struct tipc_sock, node),
.key_offset = offsetof(struct tipc_sock, portid),
.key_len = sizeof(u32), /* portid */
- .hashfn = jhash,
.max_size = 1048576,
.min_size = 256,
};