tools: ynl: prevent reorder and fix flags
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
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tools: ynl: support kdocs for flags in code generationtools/ | +20 | 0 replies | Applied |
| 2/3 | tools: ynl: rename ops_list -> msg_listtools/ | +6 | 0 replies | Applied |
| 3/3 | tools: ynl: store ops in ordered dict to avoid random orderingtools/ | +2 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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