mbox series

[net-next,00/12] netlink: specs: rtnetlink: adjust specs for C codegen

Message ID 20250418021706.1967583-1-kuba@kernel.org (mailing list archive)
Headers show
Series netlink: specs: rtnetlink: adjust specs for C codegen | expand

Message

Jakub Kicinski April 18, 2025, 2:16 a.m. UTC
The first patch brings a schema extension allowing specifying
"header" (as in .h file) properties in attribute sets.
This is used for rare cases where we carry attributes from
another family in a nest - we need to include the extra
headers. If we were to generate kernel code we'd also
need to skip it in the uAPI output.

The remaining 11 patches are pretty boring schema adjustments.

Jakub Kicinski (12):
  netlink: specs: allow header properties for attribute sets
  netlink: specs: rt-link: remove the fixed members from attrs
  netlink: specs: rt-link: remove if-netnsid from attr list
  netlink: specs: rt-link: remove duplicated group in attr list
  netlink: specs: rt-link: add C naming info
  netlink: specs: rt-link: adjust AF_ nest for C codegen
  netlink: specs: rt-link: make bond's ipv6 address attribute fixed size
  netlink: specs: rt-link: add notification for newlink
  netlink: specs: rt-neigh: add C naming info
  netlink: specs: rt-neigh: make sure getneigh is consistent
  netlink: specs: rtnetlink: correct notify properties
  netlink: specs: rt-rule: add C naming info

 Documentation/netlink/genetlink-c.yaml      |  3 +
 Documentation/netlink/genetlink-legacy.yaml |  3 +
 Documentation/netlink/netlink-raw.yaml      |  3 +
 Documentation/netlink/specs/rt-link.yaml    | 61 ++++++++++++++-------
 Documentation/netlink/specs/rt-neigh.yaml   | 12 +++-
 Documentation/netlink/specs/rt-rule.yaml    |  8 ++-
 tools/net/ynl/pyynl/ynl_gen_c.py            |  2 +-
 7 files changed, 69 insertions(+), 23 deletions(-)