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>
This commit is contained in:
Thomas Graf
2015-03-24 20:42:19 +00:00
committed by David S. Miller
parent ac833bddb5
commit b5e2c150ac
5 changed files with 9 additions and 3 deletions

View File

@@ -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)