tools: ynl: fully inherit attrs in subsets
authorJakub Kicinski <kuba@kernel.org>
Wed, 1 Mar 2023 18:36:40 +0000 (10:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2023 08:22:39 +0000 (08:22 +0000)
commit7cf93538e087a792cb476008a757ab7c1c23b68c
treef6ee05b371614dbaf22eb935eee4ba41ce68b1a3
parentad93bab6b8d3bfeae4a0158eaabd61bb0b2fbb79
tools: ynl: fully inherit attrs in subsets

To avoid having to repeat the entire definition of an attribute
(including the value) use the Attr object from the original set.
In fact this is already the documented expectation.

Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/userspace-api/netlink/specs.rst
tools/net/ynl/lib/nlspec.py