Re: [PATCH net-next 02/11] tools: ynl-gen: generate nested array policies
From: Donald Hunter <donald.hunter@gmail.com>
Date: 2025-09-05 10:53:59
Also in:
lkml
From: Donald Hunter <donald.hunter@gmail.com>
Date: 2025-09-05 10:53:59
Also in:
lkml
Asbjørn Sloth Tønnesen [off-list ref] writes:
This patch adds support for NLA_POLICY_NESTED_ARRAY() policies.
Example spec (from future wireguard.yaml):
-
name: wgpeer
attributes:
-
name: allowedips
type: indexed-array
sub-type: nest
nested-attributes: wgallowedip
yields NLA_POLICY_NESTED_ARRAY(wireguard_wgallowedip_nl_policy).
This doesn't change any currently generated code, as it isn't
used in any specs currently used for generating code.
Signed-off-by: Asbjørn Sloth Tønnesen <redacted>Reviewed-by: Donald Hunter <donald.hunter@gmail.com>