netlink: specs: prep legacy specs for C code gen
Subsystems (4)
Jakub Kicinski
maintainerv2 cover netlink: specs: prep legacy specs for C code gen
Minor adjustments to some specs to make them ready for C code gen.
v2:
- fix MAINATINERS and subject of patch 3
Jakub Kicinski (3):
netlink: specs: ovs: remove fixed header fields from attrs
netlink: specs: ovs: correct enum names in specs
netlink: specs: mptcp: rename the MPTCP path management spec
Documentation/netlink/specs/{mptcp.yaml => mptcp_pm.yaml} | 0
Documentation/netlink/specs/ovs_datapath.yaml | 3 +--
Documentation/netlink/specs/ovs_flow.yaml | 7 ++++---
Documentation/netlink/specs/ovs_vport.yaml | 4 ----
MAINTAINERS | 2 +-
include/uapi/linux/mptcp_pm.h | 2 +-
net/mptcp/mptcp_pm_gen.c | 2 +-
net/mptcp/mptcp_pm_gen.h | 2 +-
8 files changed, 9 insertions(+), 13 deletions(-)
rename Documentation/netlink/specs/{mptcp.yaml => mptcp_pm.yaml} (100%)Signature · 1 line
2.43.0
Jakub Kicinski
maintainerPATCH v2 1/3 netlink: specs: ovs: remove fixed header fields from attrs
Op's "attributes" list is a workaround for families with a single attr set. We don't want to render a single huge request structure, the same for each op since we know that most ops accept only a small set of attributes. "Attributes" list lets us narrow down the attributes to what op acctually pays attention to.
It doesn't make sense to put names of fixed headers in there. They are not "attributes" and we can't really narrow down the struct members.
Remove the fixed header fields from attrs for ovs families in preparation for C codegen support.
--- Documentation/netlink/specs/ovs_datapath.yaml | 2 -- Documentation/netlink/specs/ovs_flow.yaml | 3 --- Documentation/netlink/specs/ovs_vport.yaml | 4 ---- 3 files changed, 9 deletions(-)
Documentation/netlink/specs/ovs_datapath.yaml +0 -2
@@ -142,7 +142,6 @@ uapi-header: linux/openvswitch.h do: request: attributes: - - dp-ifindex - name - upcall-pid - user-features
@@ -154,7 +153,6 @@ uapi-header: linux/openvswitch.h do: request: attributes: - - dp-ifindex - name mcast-groups:
Documentation/netlink/specs/ovs_flow.yaml +0 -3
@@ -947,13 +947,11 @@ uapi-header: linux/openvswitch.h do: &flow-get-op request: attributes: - - dp-ifindex - key - ufid - ufid-flags reply: attributes: - - dp-ifindex - key - ufid - mask
@@ -968,7 +966,6 @@ uapi-header: linux/openvswitch.h do: request: attributes: - - dp-ifindex - key - ufid - mask
Documentation/netlink/specs/ovs_vport.yaml +0 -4
@@ -135,7 +135,6 @@ uapi-header: linux/openvswitch.h - name - type - upcall-pid - - dp-ifindex - ifindex - options -
@@ -146,7 +145,6 @@ uapi-header: linux/openvswitch.h do: request: attributes: - - dp-ifindex - port-no - type - name
@@ -158,11 +156,9 @@ uapi-header: linux/openvswitch.h do: &vport-get-op request: attributes: - - dp-ifindex - name reply: &dev-all attributes: - - dp-ifindex - port-no - type - name
Signature · 1 line
2.43.0
Jakub Kicinski
maintainerPATCH v2 2/3 netlink: specs: ovs: correct enum names in specs
In reply to Jakub KicinskiAlign the enum-names of OVS with what's actually in the uAPI. Either correct the names, or mark the enum as empty because the values are in fact #defines.
--- Documentation/netlink/specs/ovs_datapath.yaml | 1 + Documentation/netlink/specs/ovs_flow.yaml | 4 ++++ 2 files changed, 5 insertions(+)
Documentation/netlink/specs/ovs_datapath.yaml +1 -0
@@ -20,6 +20,7 @@ uapi-header: linux/openvswitch.h name: user-features type: flags name-prefix: ovs-dp-f- + enum-name: entries: - name: unaligned
Documentation/netlink/specs/ovs_flow.yaml +4 -0
@@ -124,6 +124,7 @@ uapi-header: linux/openvswitch.h - name: ovs-frag-type name-prefix: ovs-frag-type- + enum-name: ovs-frag-type type: enum entries: -
@@ -269,6 +270,7 @@ uapi-header: linux/openvswitch.h - name: ovs-ufid-flags name-prefix: ovs-ufid-f- + enum-name: type: flags entries: - omit-key
@@ -288,6 +290,7 @@ uapi-header: linux/openvswitch.h doc: Basis used for computing hash. - name: ovs-hash-alg + enum-name: ovs-hash-alg type: enum doc: | Data path hash algorithm for computing Datapath hash. The algorithm type only specifies
@@ -339,6 +342,7 @@ uapi-header: linux/openvswitch.h MPLS tunnel attributes. - name: ct-state-flags + enum-name: type: flags name-prefix: ovs-cs-f- entries:
Signature · 1 line
2.43.0
Jakub Kicinski
maintainerPATCH v2 3/3 netlink: specs: mptcp: rename the MPTCP path management spec
In reply to Jakub KicinskiWe assume in handful of places that the name of the spec is the same as the name of the family. We could fix that but it seems like a fair assumption to make. Rename the MPTCP spec instead.
---
v2:
- fix MAINTAINERS (build bot)
- remove the (?) in the title
---
Documentation/netlink/specs/{mptcp.yaml => mptcp_pm.yaml} | 0
MAINTAINERS | 2 +-
include/uapi/linux/mptcp_pm.h | 2 +-
net/mptcp/mptcp_pm_gen.c | 2 +-
net/mptcp/mptcp_pm_gen.h | 2 +-
5 files changed, 4 insertions(+), 4 deletions(-)
rename Documentation/netlink/specs/{mptcp.yaml => mptcp_pm.yaml} (100%)Documentation/netlink/specs/mptcp_pm.yaml renamed from Documentation/netlink/specs/mptcp.yaml +0 -0
MAINTAINERS +1 -1
@@ -15085,7 +15085,7 @@ W: https://github.com/multipath-tcp/mptcp_net-next/wiki B: https://github.com/multipath-tcp/mptcp_net-next/issues T: git https://github.com/multipath-tcp/mptcp_net-next.git export-net T: git https://github.com/multipath-tcp/mptcp_net-next.git export -F: Documentation/netlink/specs/mptcp.yaml +F: Documentation/netlink/specs/mptcp_pm.yaml F: Documentation/networking/mptcp-sysctl.rst F: include/net/mptcp.h F: include/trace/events/mptcp.h
include/uapi/linux/mptcp_pm.h +1 -1
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ /* Do not edit directly, auto-generated from: */ -/* Documentation/netlink/specs/mptcp.yaml */ +/* Documentation/netlink/specs/mptcp_pm.yaml */ /* YNL-GEN uapi header */ #ifndef _UAPI_LINUX_MPTCP_PM_H
net/mptcp/mptcp_pm_gen.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) /* Do not edit directly, auto-generated from: */ -/* Documentation/netlink/specs/mptcp.yaml */ +/* Documentation/netlink/specs/mptcp_pm.yaml */ /* YNL-GEN kernel source */ #include <net/netlink.h>
net/mptcp/mptcp_pm_gen.h +1 -1
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ /* Do not edit directly, auto-generated from: */ -/* Documentation/netlink/specs/mptcp.yaml */ +/* Documentation/netlink/specs/mptcp_pm.yaml */ /* YNL-GEN kernel header */ #ifndef _LINUX_MPTCP_PM_GEN_H
Signature · 1 line
2.43.0
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 11 lines · On Thu, 14 Dec 2023 17:57:32 -0800 you wrote:
Minor adjustments to some specs to make them ready for C code gen.
v2:
- fix MAINATINERS and subject of patch 3Jakub Kicinski (3):
netlink: specs: ovs: remove fixed header fields from attrs
netlink: specs: ovs: correct enum names in specs
netlink: specs: mptcp: rename the MPTCP path management spec[...]
Here is the summary with links:
- [net-next,v2,1/3] netlink: specs: ovs: remove fixed header fields from attrs
https://git.kernel.org/netdev/net-next/c/3ada0b33c454 - [net-next,v2,2/3] netlink: specs: ovs: correct enum names in specs https://git.kernel.org/netdev/net-next/c/209bcb9af8f1 - [net-next,v2,3/3] netlink: specs: mptcp: rename the MPTCP path management spec https://git.kernel.org/netdev/net-next/c/b059aef76c51
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html