Skip to content

tools: ynl: decode link types present in tests

Jakub Kicinski 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 Latest3 patches 1 replyApplied 3/3
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- adjust C code gen in patch 1, it dependend on reusing attr objects
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tools: ynl: correctly handle overrides of fields in subsettools/net/ynl/lib/nlspec.py tools/net/ynl/ynl-gen-c.py+26 -51 replyApplied
2/3tools: ynl: print some information about attribute we can't parsetools/net/ynl/lib/ynl.py+38 -340 repliesApplied
3/3netlink: specs: rt_link: decode ip6tnl, vti and vti6 link attrsDocumentation/netlink/specs/rt_link.yaml+87 -00 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDonald HunterStanislav Fomichev
1/3R-b
2/3R-b A-b
3/3R-b A-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 0/3] tools: ynl: decode link types present in tests

Using a kernel built for the net selftest target to run drivers/net tests currently fails, because the net kernel automatically spawns a handful of tunnel devices which YNL can't decode.

Fill in those missing link types in rt_link. We need to extend subset support a bit for it to work.

v2:
- adjust C code gen in patch 1, it dependend on reusing attr objects
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (3):
tools: ynl: correctly handle overrides of fields in subset
tools: ynl: print some information about attribute we can't parse
netlink: specs: rt_link: decode ip6tnl, vti and vti6 link attrs

 Documentation/netlink/specs/rt_link.yaml | 87 ++++++++++++++++++++++++
 tools/net/ynl/lib/nlspec.py              |  5 +-
 tools/net/ynl/lib/ynl.py                 | 72 +++++++++++---------
 tools/net/ynl/ynl-gen-c.py               | 26 +++++--
 4 files changed, 151 insertions(+), 39 deletions(-)
Signature · 1 line
2.47.1