Skip to contentSkip to conversation

docs: netlink: clean up after deprecating version

PATCH Superseded Jakub Kicinski 3 participants 3 messages Oct 12, 2023 – Oct 13, 2023

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 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.

---
 .../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..11710086aba0 100644
@@ -11,6 +11,20 @@ the ``genetlink-legacy`` protocol level.
 Specification
 =============
 
+Gobals
+------
+
+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 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
reviewer
#1 lore raw

Hi,

Quoted 15 lines · Jakub Kicinski

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

---
 .../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 +0 -0
index 40b82ad5d54a..11710086aba0 100644

Documentation/userspace-api/netlink/genetlink-legacy.rst the ``genetlink-legacy`` protocol level. · line 14

Quoted 4 lines
Documentation/userspace-api/netlink/genetlink-legacy.rst +1 -0
@@ -11,6 +11,20 @@ the ``genetlink-legacy`` protocol level.
 Specification
 =============
 
+Gobals

Globals
?

Documentation/userspace-api/netlink/genetlink-legacy.rst the ``genetlink-legacy`` protocol level. · line 26

Quoted 12 lines
Documentation/userspace-api/netlink/genetlink-legacy.rst +12 -0
+------
+
+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 breaking changes
+are generally not allowed ``version`` is very rarely used.

I would s/are/is/. To me "breaking changes" is singular, not plural.

Quoted 20 lines
Documentation/userspace-api/netlink/genetlink-legacy.rst +1 -0
+
 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
~Randy
#2 lore raw
In reply to Jakub Kicinski
Quoted 21 lines · Thu, Oct 12, 2023 at 05:43:15PM 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.

---
.../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 +0 -0
index 40b82ad5d54a..11710086aba0 100644
@@ -11,6 +11,20 @@ the ``genetlink-legacy`` protocol level.

Specification
=============

Documentation/userspace-api/netlink/genetlink-legacy.rst +3 -0
+Gobals
+------
+

Documentation/userspace-api/netlink/genetlink-legacy.rst the ``genetlink-legacy`` protocol level. · line 26

Quoted 10 lines
Documentation/userspace-api/netlink/genetlink-legacy.rst +10 -0
+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 breaking changes
+are generally not allowed ``version`` is very rarely used.

"should never be used" perhaps?

Quoted 23 lines

+
Attribute type nests
--------------------

Documentation/userspace-api/netlink/specs.rst +0 -0
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.

Documentation/userspace-api/netlink/specs.rst +0 -5
-version
-~~~~~~~
-
-Generic Netlink family version, default is 1.
-

protocol
~~~~~~~~

Signature · 1 line
2.41.0