]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commit42bd96cb9ef444f209c3cda63e60b171a308ebd7
tree9a4f9f12a27cede2744484a665d2d89afa3717eb
parentac4d1baf97fdaa6ef789273f0fd485c0d0d6f100
parent25e37418c87249369fe546f2cb6af578c16b68b9
Merge branch 'tools-ynl-gen-support-sub-types-for-binary-attributes'

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>