]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nf_tables_offload: add nft_flow_action_entry_next() and use it
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Mar 2026 09:04:02 +0000 (11:04 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Apr 2026 05:51:31 +0000 (07:51 +0200)
commitc6f85577584b5f8414141ae389e974b8ca6a698b
treecb876fef2672595ecc00083f56d049a9916dd933
parentf33fad8dbfff7c35c22abb3a7305173d005ac362
netfilter: nf_tables_offload: add nft_flow_action_entry_next() and use it

Add a new helper function to retrieve the next action entry in flow
rule, check if the maximum number of actions is reached, bail out in
such case.

Replace existing opencoded iteration on the action array by this
helper function.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/net/netfilter/nf_tables_offload.h
net/netfilter/nf_dup_netdev.c
net/netfilter/nft_immediate.c