]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
netlink: Remove max_size setting
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 May 2015 00:27:59 +0000 (08:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 03:27:02 +0000 (23:27 -0400)
We currently limit the hash table size to 64K which is very bad
as even 10 years ago it was relatively easy to generate millions
of sockets.

Since the hash table is naturally limited by memory allocation
failure, we don't really need an explicit limit so this patch
removes it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c

index ec4adbdcb9b4a9926b4d992906f51787c57dc6a2..daa0b818174bdc2c7b5e15e5e0dbd6b287014ba6 100644 (file)
@@ -3139,7 +3139,6 @@ static const struct rhashtable_params netlink_rhashtable_params = {
        .key_len = netlink_compare_arg_len,
        .obj_hashfn = netlink_hash,
        .obj_cmpfn = netlink_compare,
-       .max_size = 65536,
        .automatic_shrinking = true,
 };