Skip to content

tools: ynl-gen: dust off the user space code

Jakub Kicinski netdev 1 version 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

  1. v1 Latest10 patches 0 repliesApplied 10/10

Patches in v1 All 10 applied

#Subject and filesSizeRepliesApplied
1/10tools: ynl-gen: add extra headers for user spacetools/net/ynl/ynl-gen-c.py+7 -00 repliesApplied
2/10tools: ynl-gen: fix unused / pad attribute handlingtools/net/ynl/ynl-gen-c.py+17 -30 repliesApplied
3/10tools: ynl-gen: don't override pure nested structtools/net/ynl/ynl-gen-c.py+2 -10 repliesApplied
4/10tools: ynl-gen: loosen type consistency check for eventstools/net/ynl/ynl-gen-c.py+8 -70 repliesApplied
5/10tools: ynl-gen: add error checking for nested structstools/net/ynl/ynl-gen-c.py+2 -10 repliesApplied
6/10tools: ynl-gen: generate enum-to-string helperstools/net/ynl/ynl-gen-c.py+66 -00 repliesApplied
7/10tools: ynl-gen: move the response reading logic into YNLtools/net/ynl/ynl-gen-c.py+27 -360 repliesApplied
8/10tools: ynl-gen: generate alloc and free helpers for reqtools/net/ynl/ynl-gen-c.py+17 -00 repliesApplied
9/10tools: ynl-gen: switch to family structtools/net/ynl/ynl-gen-c.py+15 -00 repliesApplied
10/10tools: ynl-gen: generate static descriptions of notificationstools/net/ynl/ynl-gen-c.py+42 -100 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/10] tools: ynl-gen: dust off the user space code

Every now and then I wish I finished the user space part of the netlink specs, Python scripts kind of stole the show but C is useful for selftests and stuff which needs to be fast. Recently someone asked me how to access devlink and ethtool from C++ which pushed me over the edge.

Fix things which bit rotted and finish notification handling. This series contains code gen changes only. I'll follow up with the fixed component, samples and docs as soon as it's merged.

Jakub Kicinski (10):
tools: ynl-gen: add extra headers for user space
tools: ynl-gen: fix unused / pad attribute handling
tools: ynl-gen: don't override pure nested struct
tools: ynl-gen: loosen type consistency check for events
tools: ynl-gen: add error checking for nested structs
tools: ynl-gen: generate enum-to-string helpers
tools: ynl-gen: move the response reading logic into YNL
tools: ynl-gen: generate alloc and free helpers for req
tools: ynl-gen: switch to family struct
tools: ynl-gen: generate static descriptions of notifications

 tools/net/ynl/ynl-gen-c.py | 253 +++++++++++++++++++++++++++++--------
 1 file changed, 199 insertions(+), 54 deletions(-)
Signature · 1 line
2.40.1