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.
Showing the changes to include/uapi/linux (1 of 16 files). Show all
Unified · Split
| @@ -96,7 +96,7 @@ enum { · 95 unmodified lines | ||
| 96 | 96 | IPSET_ATTR_HASHSIZE, |
| 97 | 97 | IPSET_ATTR_MAXELEM, |
| 98 | 98 | IPSET_ATTR_NETMASK, |
| 99 | − IPSET_ATTR_PROBES, | |
| 99 | + IPSET_ATTR_BUCKETSIZE, /* was unused IPSET_ATTR_PROBES */ | |
| 100 | 100 | IPSET_ATTR_RESIZE, |
| 101 | 101 | IPSET_ATTR_SIZE, |
| 102 | 102 | /* Kernel-only */ |
| @@ -214,6 +214,8 @@ enum ipset_cadt_flags { · 111 unmodified lines | ||
| 214 | 214 | enum ipset_create_flags { |
| 215 | 215 | IPSET_CREATE_FLAG_BIT_FORCEADD = 0, |
| 216 | 216 | IPSET_CREATE_FLAG_FORCEADD = (1 << IPSET_CREATE_FLAG_BIT_FORCEADD), |
| 217 | + IPSET_CREATE_FLAG_BIT_BUCKETSIZE = 1, | |
| 218 | + IPSET_CREATE_FLAG_BUCKETSIZE = (1 << IPSET_CREATE_FLAG_BIT_BUCKETSIZE), | |
| 217 | 219 | IPSET_CREATE_FLAG_BIT_MAX = 7, |
| 218 | 220 | }; |
| 219 | 221 | |