tools: ynl-gen: support sub-types for binary attributes
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
- v2 Latest3 patches 2 repliesApplied 3/3
- v13 patches 5 repliesSuperseded
Changes in v2 from the cover letter
- use sub-classes
v1: https://lore.kernel.org/[email protected]
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tools: ynl-gen: support sub-type for binary attributestools/ | +40 | 1 reply | Applied |
| 2/3 | tools: ynl-gen: auto-indent elsetools/ | +1 | 0 replies | Applied |
| 3/3 | tools: ynl-gen: support struct for binary attributestools/ | +20 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Donald Hunter |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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