netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] tools: ynl-gen: support sub-types for binary attributes
@ 2025-05-08  2:28 Jakub Kicinski
  2025-05-08  2:28 ` [PATCH net-next 1/3] tools: ynl-gen: support sub-type " Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jakub Kicinski @ 2025-05-08  2:28 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, donald.hunter,
	jacob.e.keller, Jakub Kicinski

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.

Jakub Kicinski (3):
  tools: ynl-gen: support sub-type for binary attributes
  tools: ynl-gen: auto-indent else
  tools: ynl-gen: support struct for binary attributes

 tools/net/ynl/pyynl/ynl_gen_c.py | 66 +++++++++++++++++++++++++++-----
 1 file changed, 56 insertions(+), 10 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-05-09  9:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08  2:28 [PATCH net-next 0/3] tools: ynl-gen: support sub-types for binary attributes Jakub Kicinski
2025-05-08  2:28 ` [PATCH net-next 1/3] tools: ynl-gen: support sub-type " Jakub Kicinski
2025-05-08 11:33   ` Donald Hunter
2025-05-08 16:54     ` Jakub Kicinski
2025-05-09  9:05       ` Donald Hunter
2025-05-08  2:28 ` [PATCH net-next 2/3] tools: ynl-gen: auto-indent else Jakub Kicinski
2025-05-08 11:34   ` Donald Hunter
2025-05-08  2:28 ` [PATCH net-next 3/3] tools: ynl-gen: support struct for binary attributes Jakub Kicinski
2025-05-08 11:36   ` Donald Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).