diff options
author | 2024-11-13 16:35:51 +0100 | |
---|---|---|
committer | 2024-11-14 12:40:55 +0100 | |
commit | 466c9b3b2a92602360e9fa25943b8aa191122dfc (patch) | |
tree | 02ae26cccca5c10a0afa67a0722777779b28790c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netfilter: nf_tables: prepare for multiple elements in nft_trans_elem structure (diff) | |
download | wireguard-linux-466c9b3b2a92602360e9fa25943b8aa191122dfc.tar.xz wireguard-linux-466c9b3b2a92602360e9fa25943b8aa191122dfc.zip |
netfilter: nf_tables: prepare nft audit for set element compaction
nftables audit log format emits the number of added/deleted rules, sets,
set elements and so on, to userspace:
table=t1 family=2 entries=4 op=nft_register_set
~~~~~~~~~
At this time, the 'entries' key is the number of transactions that will
be applied.
The upcoming set element compression will coalesce subsequent
adds/deletes to the same set requests in the same transaction
request to conseve memory.
Without this patch, we'd under-report the number of altered elements.
Increment the audit counter by the number of elements to keep the reported
entries value the same.
Without this, nft_audit.sh selftest fails because the recorded
(expected) entries key is smaller than the expected one.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions