mbox series

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

Message ID 20240306231046.97158-1-donald.hunter@gmail.com (mailing list archive)
Headers show
Series tools/net/ynl: Add support for nlctrl netlink family | expand

Message

Donald Hunter March 6, 2024, 11:10 p.m. UTC
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

Comments

patchwork-bot+netdevbpf@kernel.org March 8, 2024, 5 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  6 Mar 2024 23:10:40 +0000 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/6] tools/net/ynl: Fix extack decoding for netlink-raw
    https://git.kernel.org/netdev/net-next/c/cecbc52c46e2
  - [net-next,v3,2/6] tools/net/ynl: Report netlink errors without stacktrace
    https://git.kernel.org/netdev/net-next/c/771b7012e5f3
  - [net-next,v3,3/6] tools/net/ynl: Fix c codegen for array-nest
    https://git.kernel.org/netdev/net-next/c/6fe7de5e9c08
  - [net-next,v3,4/6] tools/net/ynl: Add nest-type-value decoding
    https://git.kernel.org/netdev/net-next/c/b6e6a76dec33
  - [net-next,v3,5/6] doc/netlink: Allow empty enum-name in ynl specs
    https://git.kernel.org/netdev/net-next/c/bc52b39309c3
  - [net-next,v3,6/6] doc/netlink/specs: Add spec for nlctrl netlink family
    https://git.kernel.org/netdev/net-next/c/768e044a5fd4

You are awesome, thank you!