remarkable-linux/include/linux/netfilter/ipset
Josh Hunt 07cf8f5ae2 netfilter: ipset: add forceadd kernel support for hash set types
Adds a new property for hash set types, where if a set is created
with the 'forceadd' option and the set becomes full the next addition
to the set may succeed and evict a random entry from the set.

To keep overhead low eviction is done very simply. It checks to see
which bucket the new entry would be added. If the bucket's pos value
is non-zero (meaning there's at least one entry in the bucket) it
replaces the first entry in the bucket. If pos is zero, then it continues
down the normal add process.

This property is useful if you have a set for 'ban' lists where it may
not matter if you release some entries from the set early.

Signed-off-by: Josh Hunt <johunt@akamai.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
2014-03-06 09:31:43 +01:00
..
ip_set.h netfilter: ipset: add forceadd kernel support for hash set types 2014-03-06 09:31:43 +01:00
ip_set_bitmap.h netfilter: ipset: Unified bitmap type generation 2013-04-29 20:08:54 +02:00
ip_set_comment.h netfilter: ipset: Support comments for ipset entries in the core. 2013-09-30 21:33:28 +02:00
ip_set_getport.h
ip_set_hash.h UAPI: (Scripted) Disintegrate include/linux/netfilter/ipset 2012-10-09 09:48:55 +01:00
ip_set_list.h UAPI: (Scripted) Disintegrate include/linux/netfilter/ipset 2012-10-09 09:48:55 +01:00
ip_set_timeout.h netfilter: ipset: Move extension data to set structure 2013-09-30 21:33:27 +02:00
pfxlen.h netfilter: ipset: Move often used IPv6 address masking function to header file 2013-04-29 20:08:50 +02:00