]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'tools-ynl-gen-support-sub-types-for-binary-attributes'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 13 May 2025 11:22:34 +0000 (13:22 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 May 2025 11:22:34 +0000 (13:22 +0200)
Jakub Kicinski says:

====================
tools: ynl-gen: support sub-types for binary attributes

Binary attributes have sub-type annotations which either indicate
that the binary object should be interpreted as a raw / C array of
a simple type (e.g. u32), or that it's a struct.

Use this information in the C codegen instead of outputting void *
for all binary attrs. It doesn't make a huge difference in the genl
families, but in classic Netlink there is a lot more structs.

v1: https://lore.kernel.org/20250508022839.1256059-1-kuba@kernel.org
====================

Link: https://patch.msgid.link/20250509154213.1747885-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge