]> Pileus Git - ~andy/linux/commit
netfilter: ipset: Increase the number of maximal sets automatically
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 27 Nov 2012 09:58:09 +0000 (09:58 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 3 Dec 2012 13:36:08 +0000 (14:36 +0100)
commit9076aea76538556224e7d73ab718f8841330818a
tree50d4a6413f9c5dd7d65e9da485179af2e9b824de
parent60e476d02129acb1f863a9b4932358678ee6a355
netfilter: ipset: Increase the number of maximal sets automatically

The max number of sets was hardcoded at kernel cofiguration time and
could only be modified via a module parameter. The patch adds the support
of increasing the max number of sets automatically, as needed.

The array of sets is incremented by 64 new slots if we run out of
empty slots. The absolute limit for the maximal number of sets
is limited by 65534.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_core.c