Skip to content

tools/net/ynl: Add support for nlctrl netlink family

Donald Hunter netdev 3 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. v3 Latest6 patches 8 repliesApplied 6/6
  2. v25 patches 10 repliesSuperseded
  3. v14 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Add a better description to the nlctrl spec (Jakub)
- Format all codegen names using lower-kebab-case (Jakub)
- Add a patch to fix the schemas

Patches in v3 All 6 applied

#Subject and filesSizeRepliesApplied
1/6tools/net/ynl: Fix extack decoding for netlink-rawtools/net/ynl/lib/ynl.py+6 -10 repliesApplied
2/6tools/net/ynl: Report netlink errors without stacktracetools/net/ynl/cli.py tools/net/ynl/lib/__init__.py+13 -95 repliesApplied
3/6tools/net/ynl: Fix c codegen for array-nesttools/net/ynl/ynl-gen-c.py+1 -10 repliesApplied
4/6tools/net/ynl: Add nest-type-value decodingtools/net/ynl/lib/ynl.py+12 -00 repliesApplied
5/6doc/netlink: Allow empty enum-name in ynl specsDocumentation/netlink/genetlink-c.yaml Documentation/netlink/genetlink-legacy.yaml Documentation/netlink/netlink-raw.yaml+27 -183 repliesApplied
6/6doc/netlink/specs: Add spec for nlctrl netlink familyDocumentation/netlink/specs/nlctrl.yaml+206 -00 repliesApplied

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchJakub Kicinski
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6
6/6

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/6] tools/net/ynl: Add support for nlctrl netlink family

This series adds a new YNL spec for the nlctrl family, plus some fixes and enhancements for ynl.

Patch 1 fixes an extack decoding bug
Patch 2 gives cleaner netlink error reporting Patch 3 fixes an array-nest codegen bug
Patch 4 adds nest-type-value support to ynl
Patch 5 fixes the ynl schemas to allow empty enum-name attrs Patch 6 contains the nlctrl spec

Changes from v2 -> v3:
- Add a better description to the nlctrl spec (Jakub)
- Format all codegen names using lower-kebab-case (Jakub)
- Add a patch to fix the schemas

Changes from v1 -> v2:
- Added patch 3 to fix codegen bug
- Removed multi-level array-nest patch
- Added nest-type-value patch
- Updated nlctrl spec to align with headers and fix compilation

Donald Hunter (6):
tools/net/ynl: Fix extack decoding for netlink-raw tools/net/ynl: Report netlink errors without stacktrace tools/net/ynl: Fix c codegen for array-nest tools/net/ynl: Add nest-type-value decoding doc/netlink: Allow empty enum-name in ynl specs doc/netlink/specs: Add spec for nlctrl netlink family

 Documentation/netlink/genetlink-c.yaml      |  15 +-
 Documentation/netlink/genetlink-legacy.yaml |  15 +-
 Documentation/netlink/netlink-raw.yaml      |  15 +-
 Documentation/netlink/specs/nlctrl.yaml     | 207 ++++++++++++++++++++
 tools/net/ynl/cli.py                        |  18 +-
 tools/net/ynl/lib/__init__.py               |   4 +-
 tools/net/ynl/lib/ynl.py                    |  19 +-
 tools/net/ynl/ynl-gen-c.py                  |   2 +-
 8 files changed, 266 insertions(+), 29 deletions(-)
 create mode 100644 Documentation/netlink/specs/nlctrl.yaml
Signature · 1 line
2.42.0