tools: ynl: fix subset use and change default value for attrs/ops
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tools: ynl: fully inherit attrs in subsetsDocumentation/ tools/ | +17 | 0 replies | |
| 2/3 | tools: ynl: use 1 as the default for first entry in attrs/opsDocumentation/ tools/ tools/ | +14 | 0 replies | |
| 3/3 | netlink: specs: update for codegen enumerating from 1Documentation/ Documentation/ Documentation/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net 0/3] tools: ynl: fix subset use and change default value for attrs/ops
Fix a problem in subsetting, which will become apparent when the devlink family comes after the merge window. Even tho none of the existing families need this, we don't want someone to get "inspired" by the current, incorrect code when using specs in other languages.
Change the default value for the first attr/op. This is a slight behavior change so needs to go in now. The diffstat of the last patch should serve as the clearest justification there..
Jakub Kicinski (3):
tools: ynl: fully inherit attrs in subsets
tools: ynl: use 1 as the default for first entry in attrs/ops
netlink: specs: update for codegen enumerating from 1
Documentation/netlink/specs/ethtool.yaml | 15 ----------- Documentation/netlink/specs/fou.yaml | 2 ++ Documentation/netlink/specs/netdev.yaml | 2 -- Documentation/userspace-api/netlink/specs.rst | 10 +++++-- tools/net/ynl/lib/nlspec.py | 27 ++++++++++++------- tools/net/ynl/ynl-gen-c.py | 7 +++-- 6 files changed, 32 insertions(+), 31 deletions(-)
Signature · 1 line
2.39.2