summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorFlorian Westphal2018-05-25 00:25:47 +0200
committerPablo Neira Ayuso2018-05-29 00:27:26 +0200
commit003087911af28941a95fa053db0ac36b2ee27207 (patch)
tree8f65587182cf879ecdefcdc3c5b1aaf36ff8bc72 /net/netfilter/nf_tables_api.c
parentnetfilter: nat: merge nf_nat_redirect into nf_nat (diff)
downloadkernel-qcow2-linux-003087911af28941a95fa053db0ac36b2ee27207.tar.gz
kernel-qcow2-linux-003087911af28941a95fa053db0ac36b2ee27207.tar.xz
kernel-qcow2-linux-003087911af28941a95fa053db0ac36b2ee27207.zip
netfilter: nfnetlink: allow commit to fail
->commit() cannot fail at the moment. Followup-patch adds kmalloc calls in the commit phase, so we'll need to be able to handle errors. Make it so that -EGAIN causes a full replay, and make other errors cause the transaction to fail. Failing is ok from a consistency point of view as long as we perform all actions that could return an error before we increment the generation counter and the base seq. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
0 files changed, 0 insertions, 0 deletions