diff options
author | Florian Westphal <fw@strlen.de> | 2024-11-13 18:35:50 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-11-14 14:40:37 +0300 |
commit | a8ee6b900c147d3bedced6c52ba6cb603226aaa3 (patch) | |
tree | 0e70acd4824e6208b0c1221685cbf4d38d471730 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4ee29181216d2acb7be210126324ec3bc0e3bd01 (diff) | |
download | linux-a8ee6b900c147d3bedced6c52ba6cb603226aaa3.tar.xz |
netfilter: nf_tables: prepare for multiple elements in nft_trans_elem structure
Add helpers to release the individual elements contained in the
trans_elem container structure.
No functional change intended.
Followup patch will add 'nelems' member and will turn 'priv' into
a flexible array.
These helpers can then loop over all elements.
Care needs to be taken to handle a mix of new elements and existing
elements that are being updated (e.g. timeout refresh).
Before this patch, NEWSETELEM transaction with update is released
early so nft_trans_set_elem_destroy() won't get called, so we need
to skip elements marked as update.
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