summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-11-13 18:35:53 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2024-11-14 15:05:49 +0300
commit508180850b732c7a0e3a728460cf3f95f25e1fbd (patch)
treec962ca63c29191340956a43d744f0724e1d313c6 /tools/perf/scripts/python/exported-sql-viewer.py
parentb0c49466043a4878d8ef1263a4c9020698958a4c (diff)
downloadlinux-508180850b732c7a0e3a728460cf3f95f25e1fbd.tar.xz
netfilter: nf_tables: allocate element update information dynamically
Move the timeout/expire/flag members from nft_trans_one_elem struct into a dybamically allocated structure, only needed when timeout update was requested. This halves size of nft_trans_one_elem struct and allows to compact up to 124 elements in one transaction container rather than 62. This halves memory requirements for a large flush or insert transaction, where ->update remains NULL. Care has to be taken to release the extra data in all spots, including abort path. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions