Skip to content

tools/net/ynl: Add features for tc family

Donald Hunter linux-doc netdev 2 versions – 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 · linked by author and title

  1. v2 Latest13 patches 2 repliesApplied 13/13
  2. v112 patches 18 repliesSuperseded

Changes in v2 from the cover letter

- Use spec-led sub-message selector resolution instead of ChainMap
- Add docs for sub-message selector resolution
- Remove unused variable declaration in ynl-gen-rst

Patches in v2 All 13 applied

#Subject and filesSizeRepliesApplied
1/13tools/net/ynl: Add --output-json arg to ynl clitools/net/ynl/cli.py+19 -30 repliesApplied
2/13tools/net/ynl: Support sub-messages in nested attribute spacestools/net/ynl/lib/ynl.py+29 -90 repliesApplied
3/13doc/netlink: Describe sub-message selector resolutionDocumentation/userspace-api/netlink/netlink-raw.rst+8 -00 repliesApplied
4/13tools/net/ynl: Refactor fixed header encoding into separate methodtools/net/ynl/lib/ynl.py+15 -111 replyApplied
5/13tools/net/ynl: Add support for encoding sub-messagestools/net/ynl/lib/ynl.py+23 -40 repliesApplied
6/13tools/net/ynl: Encode default values for binary blobstools/net/ynl/lib/ynl.py+7 -20 repliesApplied
7/13tools/net/ynl: Combine struct decoding logic in ynltools/net/ynl/lib/ynl.py+14 -330 repliesApplied
8/13tools/net/ynl: Rename _fixed_header_size() to _struct_size()tools/net/ynl/lib/ynl.py+6 -60 repliesApplied
9/13tools/net/ynl: Move formatted_string method out of NlAttrtools/net/ynl/lib/ynl.py+15 -160 repliesApplied
10/13tools/net/ynl: Add support for nested structsDocumentation/netlink/netlink-raw.yaml tools/net/ynl/lib/nlspec.py tools/net/ynl/lib/ynl.py+34 -90 repliesApplied
11/13doc/netlink: Describe nested structs in netlink raw docsDocumentation/userspace-api/netlink/netlink-raw.rst+34 -00 repliesApplied
12/13tools/net/ynl: Add type info to struct members in generated docstools/net/ynl/ynl-gen-rst.py+8 -10 repliesApplied
13/13doc/netlink/specs: Update the tc specDocumentation/netlink/specs/tc.yaml+2067 -1510 repliesApplied

Reviews trailers per patch

3 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBreno LeitaoJiri Pirko
SeriesR-b
1/13R-b
2/13
3/13
4/13R-b
5/13
6/13
7/13
8/13
9/13R-b
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 00/13] tools/net/ynl: Add features for tc family

Add features to ynl for tc and update the tc spec to use them.

Patch 1 adds an option to output json instead of python pretty printing. Patch 2, 3 adds support and docs for sub-messages in nested attribute spaces that reference keys from a parent space.
Patches 4 and 7-9 refactor ynl in support of nested struct definitions Patch 5 implements sub-message encoding for write ops.
Patch 6 adds logic to set default zero values for binary blobs Patches 10, 11 adds support and docs for nested struct definitions Patch 12 updates the ynl doc generator to include type information for struct members.
Patch 13 updates the tc spec - still a work in progress but more complete

v1 -> v2
- Use spec-led sub-message selector resolution instead of ChainMap
- Add docs for sub-message selector resolution
- Remove unused variable declaration in ynl-gen-rst

Donald Hunter (13):
tools/net/ynl: Add --output-json arg to ynl cli tools/net/ynl: Support sub-messages in nested attribute spaces doc/netlink: Describe sub-message selector resolution tools/net/ynl: Refactor fixed header encoding into separate method tools/net/ynl: Add support for encoding sub-messages tools/net/ynl: Encode default values for binary blobs tools/net/ynl: Combine struct decoding logic in ynl tools/net/ynl: Rename _fixed_header_size() to _struct_size() tools/net/ynl: Move formatted_string method out of NlAttr tools/net/ynl: Add support for nested structs doc/netlink: Describe nested structs in netlink raw docs tools/net/ynl: Add type info to struct members in generated docs doc/netlink/specs: Update the tc spec

 Documentation/netlink/netlink-raw.yaml        |   15 +-
 Documentation/netlink/specs/tc.yaml           | 2218 +++++++++++++++--
 .../userspace-api/netlink/netlink-raw.rst     |   42 +
 tools/net/ynl/cli.py                          |   22 +-
 tools/net/ynl/lib/nlspec.py                   |    2 +
 tools/net/ynl/lib/ynl.py                      |  200 +-
 tools/net/ynl/ynl-gen-rst.py                  |    9 +-
 7 files changed, 2271 insertions(+), 237 deletions(-)
Signature · 1 line
2.42.0