From de340a7f1a9cf21931d94ea8814545c4b2d172b0 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 21 Sep 2020 10:21:39 +0200 Subject: Add bucketsize parameter to all hash types The parameter defines the upper limit in any hash bucket at adding new entries from userspace - if the limit would be exceeded, ipset doubles the hash size and rehashes. It means the set may consume more memory but gives faster evaluation at matching in the set. Signed-off-by: Jozsef Kadlecsik --- include/libipset/args.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libipset/args.h') diff --git a/include/libipset/args.h b/include/libipset/args.h index 616cca5..93b4456 100644 --- a/include/libipset/args.h +++ b/include/libipset/args.h @@ -56,6 +56,7 @@ enum ipset_keywords { IPSET_ARG_SKBMARK, /* skbmark */ IPSET_ARG_SKBPRIO, /* skbprio */ IPSET_ARG_SKBQUEUE, /* skbqueue */ + IPSET_ARG_BUCKETSIZE, /* bucketsize */ IPSET_ARG_MAX, }; -- cgit v1.2.3