summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2025-01-06 23:40:50 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2025-01-19 16:41:41 +0100
commit8d738c1869f611955d91d8d0fd0012d9ef207201 (patch)
treed5c8a0066cd19a0fecb1f8eae77fecec8003ba27 /tools/perf/scripts/python/export-to-sqlite.py
parent9c7ad35632297edc08d0f2c7b599137e9fb5f9ff (diff)
netfilter: nf_tables: fix set size with rbtree backend
The existing rbtree implementation uses singleton elements to represent ranges, however, userspace provides a set size according to the number of ranges in the set. Adjust provided userspace set size to the number of singleton elements in the kernel by multiplying the range by two. Check if the no-match all-zero element is already in the set, in such case release one slot in the set size. Fixes: 0ed6389c483d ("netfilter: nf_tables: rename set implementations") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions