diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-03-24 23:42:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 00:48:40 +0300 |
commit | b5e2c150ac914f28a28833b57397bec0b0a2bd5f (patch) | |
tree | d22f31d07f001ac2afb5ca7a15de3fee73e74ab6 /net/netfilter/nft_hash.c | |
parent | ac833bddb591b9c7a0609f440f196375be184044 (diff) | |
download | linux-b5e2c150ac914f28a28833b57397bec0b0a2bd5f.tar.xz |
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/netfilter/nft_hash.c')
-rw-r--r-- | net/netfilter/nft_hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index ad3966976cf5..8577a37af18b 100644 --- a/net/netfilter/nft_hash.c +++ b/net/netfilter/nft_hash.c @@ -172,6 +172,7 @@ static const struct rhashtable_params nft_hash_params = { .head_offset = offsetof(struct nft_hash_elem, node), .key_offset = offsetof(struct nft_hash_elem, key), .hashfn = jhash, + .automatic_shrinking = true, }; static int nft_hash_init(const struct nft_set *set, |