netfilter: nf_tables: Utilize NLA_POLICY_NESTED_ARRAY
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Sep 2023 12:16:15 +0000 (14:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 28 Sep 2023 14:31:29 +0000 (16:31 +0200)
commit013714bf3e125a218bb02c938ff6df348dda743e
tree11f7c791ece934b75f3f3f67f6d68769a73353e8
parentaee1f692bfeda9e5c3a40cbc165d80de0ffb0879
netfilter: nf_tables: Utilize NLA_POLICY_NESTED_ARRAY

Mark attributes which are supposed to be arrays of nested attributes
with known content as such. Originally suggested for
NFTA_RULE_EXPRESSIONS only, but does apply to others as well.

Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c