Skip to content

tools: ynl-gen: add support for "inherited" selector and therefore TC

Jakub Kicinski netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 5 repliesIn review 10 of 12 applied
  2. v111 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- [patch 1] new
- [patch 8] small refactor
- [patch 10] add more includes to build on Ubuntu 22.04 system headers

Patches in v2 10 of 12 applied

#Subject and filesSizeRepliesApplied
1/12tools: ynl-gen: add makefile deps for neighinclude/uapi/linux/neighbour.h tools/net/ynl/Makefile.deps+4 -31 reply
2/12netlink: specs: tc: remove duplicate nestsDocumentation/netlink/specs/tc.yaml+4 -740 repliesApplied
3/12netlink: specs: tc: use tc-gact instead of tc-gen as struct nameDocumentation/netlink/specs/tc.yaml+3 -30 repliesApplied
4/12netlink: specs: tc: add C naming infoDocumentation/netlink/specs/tc.yaml+95 -00 repliesApplied
5/12netlink: specs: tc: drop the family name prefix from attrsDocumentation/netlink/specs/tc.yaml+167 -1670 repliesApplied
6/12tools: ynl-gen: support passing selector to a nesttools/net/ynl/pyynl/ynl_gen_c.py+60 -50 repliesApplied
7/12tools: ynl-gen: move fixed header info from RenderInfo to Structtools/net/ynl/pyynl/ynl_gen_c.py+27 -180 repliesApplied
8/12tools: ynl-gen: support local attrs in _multi_parsetools/net/ynl/pyynl/ynl_gen_c.py+8 -40 repliesApplied
9/12tools: ynl-gen: support weird sub-message formatstools/net/ynl/lib/ynl-priv.h tools/net/ynl/pyynl/ynl_gen_c.py+43 -130 repliesApplied
10/12tools: ynl: enable codegen for TCtools/net/ynl/Makefile.deps tools/net/ynl/generated/Makefile+8 -14 repliesApplied
11/12netlink: specs: tc: add qdisc dump to TC specDocumentation/netlink/specs/tc.yaml+2 -10 repliesApplied
12/12tools: ynl: add a sample for TCtools/net/ynl/samples/.gitignore tools/net/ynl/samples/tc.c+81 -00 replies

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchDonald HunterKory Maincent
1/12T-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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/12] tools: ynl-gen: add support for "inherited" selector and therefore TC

Add C codegen support for constructs needed by TC, namely passing sub-message selector from a lower nest, and sub-messages with fixed headers.

v2:
- [patch 1] new
- [patch 8] small refactor
- [patch 10] add more includes to build on Ubuntu 22.04 system headers

Jakub Kicinski (12):
tools: ynl-gen: add makefile deps for neigh
netlink: specs: tc: remove duplicate nests
netlink: specs: tc: use tc-gact instead of tc-gen as struct name
netlink: specs: tc: add C naming info
netlink: specs: tc: drop the family name prefix from attrs
tools: ynl-gen: support passing selector to a nest
tools: ynl-gen: move fixed header info from RenderInfo to Struct
tools: ynl-gen: support local attrs in _multi_parse
tools: ynl-gen: support weird sub-message formats
tools: ynl: enable codegen for TC
netlink: specs: tc: add qdisc dump to TC spec
tools: ynl: add a sample for TC

 Documentation/netlink/specs/tc.yaml | 514 +++++++++++++++-------------
 tools/net/ynl/Makefile.deps         |  10 +-
 tools/net/ynl/generated/Makefile    |   2 +-
 include/uapi/linux/neighbour.h      |   4 +-
 tools/net/ynl/lib/ynl-priv.h        |   8 +-
 tools/net/ynl/samples/tc.c          |  80 +++++
 tools/net/ynl/pyynl/ynl_gen_c.py    | 168 +++++++--
 tools/net/ynl/samples/.gitignore    |   1 +
 8 files changed, 500 insertions(+), 287 deletions(-)
 create mode 100644 tools/net/ynl/samples/tc.c
Signature · 1 line
2.49.0