mbox series

[net-next,v5,00/10] netlink: specs: add a spec for nl80211 wiphy

Message ID 20250211120127.84858-1-donald.hunter@gmail.com (mailing list archive)
Headers show
Series netlink: specs: add a spec for nl80211 wiphy | expand

Message

Donald Hunter Feb. 11, 2025, 12:01 p.m. UTC
Add a rudimentary YNL spec for nl80211 that includes get-wiphy and
get-interface, along with some required enhancements to YNL and the
netlink schemas.

Patch 1 is a minor cleanup to prepare for patch 2
Patches 2-4 are new features for YNL
Patches 5-7 are updates to ynl_gen_c
Patches 8-9 are schema updates for feature parity
Patch 10 is the new nl80211 spec

v4 -> v5
 - Rename nl80211-iftype-attrs -> iftype-attrs, thanks Paolo

v3 -> v4
 - Simplify the leading digit check in p6, thanks Jakub
 - Fix a typo in the nl80211 spec, thanks Johannes

v2 -> v3
 - Updates to spec and codegen to clean up compiler
   errors in generated nl80211-user.[ch]

v1 -> v2
 - Add formatting hints support to patch 3, thanks Jakub
 - Raise exception for unhandled hints in patch 4, thanks Jakub
 - Update nl80211 spec w/ split-wiphy-dump in patch 7, thanks Johannes

Donald Hunter (10):
  tools/net/ynl: remove extraneous plural from variable names
  tools/net/ynl: support decoding indexed arrays as enums
  tools/net/ynl: support rendering C array members to strings
  tools/net/ynl: accept IP string inputs
  tools/net/ynl: add s8, s16 to valid scalars in ynl-gen-c
  tools/net/ynl: sanitise enums with leading digits in ynl-gen-c
  tools/net/ynl: add indexed-array scalar support to ynl-gen-c
  netlink: specs: support nested structs in genetlink legacy
  netlink: specs: add s8, s16 to genetlink schemas
  netlink: specs: wireless: add a spec for nl80211

 Documentation/netlink/genetlink-c.yaml      |    2 +-
 Documentation/netlink/genetlink-legacy.yaml |    5 +-
 Documentation/netlink/genetlink.yaml        |    2 +-
 Documentation/netlink/specs/nl80211.yaml    | 2000 +++++++++++++++++++
 tools/net/ynl/Makefile.deps                 |    1 +
 tools/net/ynl/pyynl/lib/ynl.py              |   46 +-
 tools/net/ynl/pyynl/ynl_gen_c.py            |   28 +-
 7 files changed, 2063 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/netlink/specs/nl80211.yaml

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 13, 2025, 3:40 a.m. UTC | #1
Hello:

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

On Tue, 11 Feb 2025 12:01:17 +0000 you wrote:
> Add a rudimentary YNL spec for nl80211 that includes get-wiphy and
> get-interface, along with some required enhancements to YNL and the
> netlink schemas.
> 
> Patch 1 is a minor cleanup to prepare for patch 2
> Patches 2-4 are new features for YNL
> Patches 5-7 are updates to ynl_gen_c
> Patches 8-9 are schema updates for feature parity
> Patch 10 is the new nl80211 spec
> 
> [...]

Here is the summary with links:
  - [net-next,v5,01/10] tools/net/ynl: remove extraneous plural from variable names
    https://git.kernel.org/netdev/net-next/c/2151003e773c
  - [net-next,v5,02/10] tools/net/ynl: support decoding indexed arrays as enums
    https://git.kernel.org/netdev/net-next/c/678d8ddd0087
  - [net-next,v5,03/10] tools/net/ynl: support rendering C array members to strings
    https://git.kernel.org/netdev/net-next/c/569a5d63fd1b
  - [net-next,v5,04/10] tools/net/ynl: accept IP string inputs
    https://git.kernel.org/netdev/net-next/c/c578bc3a00f1
  - [net-next,v5,05/10] tools/net/ynl: add s8, s16 to valid scalars in ynl-gen-c
    https://git.kernel.org/netdev/net-next/c/8798892b800f
  - [net-next,v5,06/10] tools/net/ynl: sanitise enums with leading digits in ynl-gen-c
    https://git.kernel.org/netdev/net-next/c/16cd1a5299ee
  - [net-next,v5,07/10] tools/net/ynl: add indexed-array scalar support to ynl-gen-c
    https://git.kernel.org/netdev/net-next/c/9fcfc1e210a6
  - [net-next,v5,08/10] netlink: specs: support nested structs in genetlink legacy
    https://git.kernel.org/netdev/net-next/c/718a8360719b
  - [net-next,v5,09/10] netlink: specs: add s8, s16 to genetlink schemas
    https://git.kernel.org/netdev/net-next/c/fdb8050e1a87
  - [net-next,v5,10/10] netlink: specs: wireless: add a spec for nl80211
    https://git.kernel.org/netdev/net-next/c/31438709ecdb

You are awesome, thank you!