netfilter: nf_tables: Introduce nf_tables_getrule_single()
authorPhil Sutter <phil@nwl.cc>
Thu, 19 Oct 2023 14:03:35 +0000 (16:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2023 11:16:29 +0000 (13:16 +0200)
commit1578c32877191815f631af32ba5dfc1f1b20c1b4
treed274b4176ce27bf320d09e521f0298c4a0183ec2
parent8877393029e764036892d39614900987cbd21ca6
netfilter: nf_tables: Introduce nf_tables_getrule_single()

Outsource the reply skb preparation for non-dump getrule requests into a
distinct function. Prep work for rule reset locking.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c