Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edac450d authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

netlink: Remove max_size setting



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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Acked-by: default avatarThomas Graf <tgraf@noironetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5d28090
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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,
};