Skip to content

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

Jakub Kicinski netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied 3/3
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tools: ynl-gen: support sub-type for binary attributestools/net/ynl/pyynl/ynl_gen_c.py+40 -31 replyApplied
2/3tools: ynl-gen: auto-indent elsetools/net/ynl/pyynl/ynl_gen_c.py+1 -00 repliesApplied
3/3tools: ynl-gen: support struct for binary attributestools/net/ynl/pyynl/ynl_gen_c.py+20 -11 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDonald Hunter
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] 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.

v2:
- use sub-classes
v1: https://lore.kernel.org/[email protected]

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 | 63 ++++++++++++++++++++++++++++++--
 1 file changed, 60 insertions(+), 3 deletions(-)
Signature · 1 line
2.49.0