tools: ynl-gen: introduce support for bitfield32 attribute type
authorJiri Pirko <jiri@nvidia.com>
Sat, 21 Oct 2023 11:27:03 +0000 (13:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Oct 2023 23:12:46 +0000 (16:12 -0700)
commit4e2846fd6684227c8f8129ec184fbf090279216d
treeaa708e34b4209be534c0aa885a5b93480f7a22aa
parentf862ed2d0bf0cf51c28c1a69e3c2a1558d5a2978
tools: ynl-gen: introduce support for bitfield32 attribute type

Introduce support for attribute type bitfield32.
Note that since the generated code works with struct nla_bitfield32,
the generator adds netlink.h to the list of includes for userspace
headers in case any bitfield32 is present.

Note that this is added only to genetlink-legacy scheme as requested
by Jakub Kicinski.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20231021112711.660606-3-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/genetlink-legacy.yaml
Documentation/userspace-api/netlink/genetlink-legacy.rst
tools/net/ynl/lib/ynl.c
tools/net/ynl/lib/ynl.h
tools/net/ynl/lib/ynl.py
tools/net/ynl/ynl-gen-c.py