summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-11-14 14:17:28 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-11-15 23:44:52 +0100
commit63b48c73ff567bbab1f940d6e8f3f48607077a13 (patch)
treeb26776abeb6b8290b9485d0f20f761535969c571 /tools/perf/scripts/python/export-to-postgresql.py
parent23403cd8898dbc9808d3eb2f63bc1db8a340b751 (diff)
netfilter: nf_tables_offload: undo updates if transaction fails
The nft_flow_rule_offload_commit() function might fail after several successful commands, thus, leaving the hardware filtering policy in inconsistent state. This patch adds nft_flow_rule_offload_abort() function which undoes the updates that have been already processed if one command in this transaction fails. Hence, the hardware ruleset is left as it was before this aborted transaction. The deletion path needs to create the flow_rule object too, in case that an existing rule needs to be re-added from the abort path. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions