netlink: specs: don't allow version to be specified for genetlink
Subsystems (3)
PATCH v2 1/1 netlink: specs: don't allow version to be specified for genetlink
From: Jiri Pirko <[email protected]>
There is no good reason to specify the version for new protocols. Forbid it in genetlink schema.
If the future proves me wrong, this restriction could be easily lifted.
Move the version definition in between legacy properties in genetlink-legacy.
---v1->v2:
- added genetlink-c bits
--- Documentation/netlink/genetlink-c.yaml | 4 ---- Documentation/netlink/genetlink-legacy.yaml | 8 ++++---- Documentation/netlink/genetlink.yaml | 4 ---- 3 files changed, 4 insertions(+), 12 deletions(-)
Documentation/netlink/genetlink-c.yaml +0 -4
@@ -26,10 +26,6 @@ properties: type: string doc: type: string - version: - description: Generic Netlink family version. Default is 1. - type: integer - minimum: 1 protocol: description: Schema compatibility level. Default is "genetlink". enum: [ genetlink, genetlink-c ]
Documentation/netlink/genetlink-legacy.yaml +4 -4
@@ -26,10 +26,6 @@ properties: type: string doc: type: string - version: - description: Generic Netlink family version. Default is 1. - type: integer - minimum: 1 protocol: description: Schema compatibility level. Default is "genetlink". enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
@@ -53,6 +49,10 @@ properties: Defines if the input policy in the kernel is global, per-operation, or split per operation type. Default is split. enum: [ split, per-op, global ] + version: + description: Generic Netlink family version. Default is 1. + type: integer + minimum: 1 # End genetlink-legacy definitions:
Documentation/netlink/genetlink.yaml +0 -4
@@ -26,10 +26,6 @@ properties: type: string doc: type: string - version: - description: Generic Netlink family version. Default is 1. - type: integer - minimum: 1 protocol: description: Schema compatibility level. Default is "genetlink". enum: [ genetlink ]
Signature · 1 line
2.41.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 10 Oct 2023 09:48:10 +0200 you wrote:
From: Jiri Pirko <[email protected]>
There is no good reason to specify the version for new protocols. Forbid it in genetlink schema.
If the future proves me wrong, this restriction could be easily lifted.
[...]
Here is the summary with links:
- [net-next,v2] netlink: specs: don't allow version to be specified for genetlink
https://git.kernel.org/netdev/net-next/c/0f07415ebb78
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html