diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-03-24 20:42:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-24 17:48:40 -0400 |
commit | b5e2c150ac914f28a28833b57397bec0b0a2bd5f (patch) | |
tree | d22f31d07f001ac2afb5ca7a15de3fee73e74ab6 /net/netlink | |
parent | ac833bddb591b9c7a0609f440f196375be184044 (diff) | |
download | linux-b5e2c150ac914f28a28833b57397bec0b0a2bd5f.tar.bz2 |
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/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index e2f7f28148e0..4caa809dbbe0 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -3142,6 +3142,7 @@ static const struct rhashtable_params netlink_rhashtable_params = { .obj_hashfn = netlink_hash, .obj_cmpfn = netlink_compare, .max_size = 65536, + .automatic_shrinking = true, }; static int __init netlink_proto_init(void) |