Skip to content

netlink: specs: remove phantom structs

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 Latest4 patches 2 repliesApplied 4/4
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4netlink: specs: nl80211: drop structs which are not uAPIDocumentation/netlink/specs/nl80211.yaml+0 -680 repliesApplied
2/4netlink: specs: ovs: correct struct namesDocumentation/netlink/specs/ovs_datapath.yaml Documentation/netlink/specs/ovs_vport.yaml+6 -90 repliesApplied
3/4netlink: specs: remove implicit structs for SNMP countersDocumentation/netlink/specs/rt-link.yaml+12 -481 replyApplied
4/4netlink: specs: rt-link: remove implicit structs from devconfDocumentation/netlink/specs/rt-link.yaml+10 -971 replyApplied

Reviews trailers per patch

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

PatchDonald Hunter
1/4R-b
2/4R-b
3/4R-b
4/4R-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/4] netlink: specs: remove phantom structs

rt-netlink and nl80211 have a few structs which may be helpful for Python decoding of binary attrs, but which don't actually exist in the C uAPI. This prevents us from using struct pointers for binary types in C.

We could support this situation better in the codegen, or add these structs to uAPI. That said Johannes suggested we remove the WiFi structs for now, and the rt-link ones are semi-broken.
Drop the struct definitions, for now, if someone has a need to use such structs in Python (as opposed to them being defined for completeness) we can revist.

v2:
- pure rebase
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (4):
netlink: specs: nl80211: drop structs which are not uAPI
netlink: specs: ovs: correct struct names
netlink: specs: remove implicit structs for SNMP counters
netlink: specs: rt-link: remove implicit structs from devconf

 Documentation/netlink/specs/nl80211.yaml      |  68 -------
 Documentation/netlink/specs/ovs_datapath.yaml |  10 +-
 Documentation/netlink/specs/ovs_vport.yaml    |   5 +-
 Documentation/netlink/specs/rt-link.yaml      | 167 +++---------------
 4 files changed, 28 insertions(+), 222 deletions(-)
Signature · 1 line
2.49.0