Skip to content

tools: ynl: prevent reorder and fix flags

Jakub Kicinski netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tools: ynl: support kdocs for flags in code generationtools/net/ynl/ynl-gen-c.py+20 -170 repliesApplied
2/3tools: ynl: rename ops_list -> msg_listtools/net/ynl/ynl-gen-c.py+6 -40 repliesApplied
3/3tools: ynl: store ops in ordered dict to avoid random orderingtools/net/ynl/ynl-gen-c.py+2 -10 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 0/3] tools: ynl: prevent reorder and fix flags

Some codegen improvements for YAML specs.

First, Lorenzon discovered when switching the XDP feature family to use flags instead of pure enum that the kdoc got garbled. The support for enum and flags is therefore unified.

Second when regenerating all families we discussed so far I noticed that some netlink policies jumped around. We need to ensure we don't render code based on their ordering in a hash.

Jakub Kicinski (3):
tools: ynl: support kdocs for flags in code generation
tools: ynl: rename ops_list -> msg_list
tools: ynl: store ops in ordered dict to avoid random ordering

 tools/net/ynl/ynl-gen-c.py | 50 +++++++++++++++++++++-----------------
 1 file changed, 28 insertions(+), 22 deletions(-)
Signature · 1 line
2.39.1