aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-03-18 12:46:48 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-18 12:47:50 -0400
commitb65885d29d41c7245bbd98769e781f77e8d9ed5b (patch)
tree9509ed7547a4788e818c3038f7ce38a8856cf1ef /net/tipc
parenta61bfa65facebd64403c94ebdab50323ce8942b2 (diff)
parente2e21c1c5808e5dfd88d3606cd6386cf85f6f5b1 (diff)
Merge branch 'rhashtable_remove_shift'
Herbert Xu says: ==================== rhashtable: Kill redundant shift parameter I was trying to squeeze bucket_table->rehash in by downsizing bucket_table->size, only to find that my spot had been taken over by bucket_table->shift. These patches kill shift and makes me feel better :) v2 corrects the typo in the test_rhashtable changelog and also notes the min_shift parameter in the tipc patch changelog. ==================== 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 813847d25a49..d7a6c10202e9 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -2286,8 +2286,8 @@ int tipc_sk_rht_init(struct net *net)
2286 .key_offset = offsetof(struct tipc_sock, portid), 2286 .key_offset = offsetof(struct tipc_sock, portid),
2287 .key_len = sizeof(u32), /* portid */ 2287 .key_len = sizeof(u32), /* portid */
2288 .hashfn = jhash, 2288 .hashfn = jhash,
2289 .max_shift = 20, /* 1M */ 2289 .max_size = 1048576,
2290 .min_shift = 8, /* 256 */ 2290 .min_size = 256,
2291 }; 2291 };
2292 2292
2293 return rhashtable_init(&tn->sk_rht, &rht_params); 2293 return rhashtable_init(&tn->sk_rht, &rht_params);