Skip to content

tools: ynl: fix subset use and change default value for attrs/ops

Jakub Kicinski linux-doc netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools: ynl: fully inherit attrs in subsetsDocumentation/userspace-api/netlink/specs.rst tools/net/ynl/lib/nlspec.py+17 -90 replies
2/3tools: ynl: use 1 as the default for first entry in attrs/opsDocumentation/userspace-api/netlink/specs.rst tools/net/ynl/lib/nlspec.py tools/net/ynl/ynl-gen-c.py+14 -60 replies
3/3netlink: specs: update for codegen enumerating from 1Documentation/netlink/specs/ethtool.yaml Documentation/netlink/specs/fou.yaml Documentation/netlink/specs/netdev.yaml+2 -170 replies

Reviews trailers per patch

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

Read the v1 thread

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