summaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorThomas Graf2015-03-24 21:42:19 +0100
committerDavid S. Miller2015-03-24 22:48:40 +0100
commitb5e2c150ac914f28a28833b57397bec0b0a2bd5f (patch)
treed22f31d07f001ac2afb5ca7a15de3fee73e74ab6 /net/tipc/socket.c
parentrhashtable: Mark internal/private inline functions as such (diff)
downloadkernel-qcow2-linux-b5e2c150ac914f28a28833b57397bec0b0a2bd5f.tar.gz
kernel-qcow2-linux-b5e2c150ac914f28a28833b57397bec0b0a2bd5f.tar.xz
kernel-qcow2-linux-b5e2c150ac914f28a28833b57397bec0b0a2bd5f.zip
rhashtable: Disable automatic shrinking by default
Introduce a new bool automatic_shrinking to require the user to explicitly opt-in to automatic shrinking of tables. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 094710519477..ee90d74d7516 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -2297,6 +2297,7 @@ static const struct rhashtable_params tsk_rht_params = {
.key_len = sizeof(u32), /* portid */
.max_size = 1048576,
.min_size = 256,
+ .automatic_shrinking = true,
};
int tipc_sk_rht_init(struct net *net)