diff options
author | 2024-11-13 16:35:53 +0100 | |
---|---|---|
committer | 2024-11-14 13:05:49 +0100 | |
commit | 508180850b732c7a0e3a728460cf3f95f25e1fbd (patch) | |
tree | c962ca63c29191340956a43d744f0724e1d313c6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netfilter: nf_tables: switch trans_elem to real flex array (diff) | |
download | wireguard-linux-508180850b732c7a0e3a728460cf3f95f25e1fbd.tar.xz wireguard-linux-508180850b732c7a0e3a728460cf3f95f25e1fbd.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions