tools: ynl-gen: inherit policy in multi-attr
authorJakub Kicinski <kuba@kernel.org>
Mon, 12 Jun 2023 15:59:20 +0000 (08:59 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Jun 2023 18:46:46 +0000 (11:46 -0700)
commitbe093a80dff0982ba2d205f1ef302a3ace285fa3
tree00a1bb663449feb778c1741a844334be56fd4113
parent10c4d2a7b88d65471a5e56bb8946b5bb59ff5cf7
tools: ynl-gen: inherit policy in multi-attr

Instead of reimplementing policies in MutliAttr for every
underlying type forward the calls to the base type.
This will be needed for DPLL which uses a multi-attr nest,
and currently gets an invalid NLA_NEST policy generated.

Reviewed-by: Jacob Keller <Jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py