]> www.infradead.org Git - users/willy/xarray.git/commit
netfilter: nf_tables: add nft_trans_commit_list_add_elem helper
authorFlorian Westphal <fw@strlen.de>
Wed, 13 Nov 2024 15:35:49 +0000 (16:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Nov 2024 11:40:08 +0000 (12:40 +0100)
commit4ee29181216d2acb7be210126324ec3bc0e3bd01
tree4399cb49abd447d3e7d561be29e51cb5008d3519
parent8340b0056ac723d04918573761b5d8f979d15a75
netfilter: nf_tables: add nft_trans_commit_list_add_elem helper

Add and use a wrapper to append trans_elem structures to the
transaction log.

Unlike the existing helper, pass a gfp_t to indicate if sleeping
is allowed.

This will be used by a followup patch to realloc nft_trans_elem
structures after they gain a flexible array member to reduce
number of such container structures on the transaction list.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c