Skip to contentSkip to conversation

docs: netlink: clean up after deprecating version

PATCH Applied Jakub Kicinski 3 participants 3 messages Oct 16, 2023 – Oct 18, 2023

Subsystems (4)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH v2 1/1 docs: netlink: clean up after deprecating version

Jiri moved version to legacy specs in commit 0f07415ebb78 ("netlink:
specs: don't allow version to be specified for genetlink"). Update the documentation.

---
v2:
- s/Gobals/Globals/
- breaking changes are -> compatibility breaking changes are
I think it's plural but the omission of "compatibility" made it confusing
- not changing the wording to "should never be used", I prefer existing
v1: https://lore.kernel.org/all/[email protected]/

---
 .../userspace-api/netlink/genetlink-legacy.rst     | 14 ++++++++++++++
 Documentation/userspace-api/netlink/specs.rst      |  5 -----
 2 files changed, 14 insertions(+), 5 deletions(-)
Documentation/userspace-api/netlink/genetlink-legacy.rst +14 -0
index 40b82ad5d54a..0b3febd57ff5 100644
@@ -11,6 +11,20 @@ the ``genetlink-legacy`` protocol level.
 Specification
 =============
 
+Globals
+-------
+
+Attributes listed directly at the root level of the spec file.
+
+version
+~~~~~~~
+
+Generic Netlink family version, default is 1.
+
+``version`` has historically been used to introduce family changes
+which may break backwards compatibility. Since compatibility breaking changes
+are generally not allowed ``version`` is very rarely used.
+
 Attribute type nests
 --------------------
 
Documentation/userspace-api/netlink/specs.rst +0 -5
index cc4e2430997e..40dd7442d2c3 100644
@@ -86,11 +86,6 @@ name
 Name of the family. Name identifies the family in a unique way, since
 the Family IDs are allocated dynamically.
 
-version
-~~~~~~~
-
-Generic Netlink family version, default is 1.
-
 protocol
 ~~~~~~~~
 
Signature · 1 line
2.41.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 15 lines · Mon, Oct 16, 2023 at 11:45:40PM CEST, [email protected] wrote:

Jiri moved version to legacy specs in commit 0f07415ebb78 ("netlink:
specs: don't allow version to be specified for genetlink"). Update the documentation.

---
v2:
- s/Gobals/Globals/
- breaking changes are -> compatibility breaking changes are
I think it's plural but the omission of "compatibility" made it confusing
- not changing the wording to "should never be used", I prefer existing
v1: https://lore.kernel.org/all/[email protected]/
---
.../userspace-api/netlink/genetlink-legacy.rst | 14 ++++++++++++++
Documentation/userspace-api/netlink/specs.rst | 5 -----

Quoted 1 line
2 files changed, 14 insertions(+), 5 deletions(-)
#2 lore raw
In reply to Jakub Kicinski
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 13 lines · On Mon, 16 Oct 2023 14:45:40 -0700 you wrote:

Jiri moved version to legacy specs in commit 0f07415ebb78 ("netlink:
specs: don't allow version to be specified for genetlink"). Update the documentation.

---
v2:
- s/Gobals/Globals/
- breaking changes are -> compatibility breaking changes are
I think it's plural but the omission of "compatibility" made it confusing
- not changing the wording to "should never be used", I prefer existing
v1: https://lore.kernel.org/all/[email protected]/

Quoted 1 line

[...]

Here is the summary with links:
- [net-next,v2] docs: netlink: clean up after deprecating version

    https://git.kernel.org/netdev/net-next/c/5294df643ba6

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html