]> git.baikalelectronics.ru Git - kernel.git/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)
commit6275c1d859d2043d75f761cd9bb7c9754b581d9d
tree50d4a6413f9c5dd7d65e9da485179af2e9b824de
parentac510aa8565a1c5bda313472f64f4d01f9715adb
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