Skip to contentSkip to conversation

netlink: specs: correct types of legacy arrays

PATCH Applied Jakub Kicinski 3 participants 3 messages May 26, 2023 – May 30, 2023

Subsystems (4)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 netlink: specs: correct types of legacy arrays

ethtool has some attrs which dump multiple scalars into an attribute. The spec currently expects one attr per entry.

Fixes a353318ebf24 ("tools: ynl: populate most of the ethtool spec")

---
CC: [email protected]

---
 Documentation/netlink/specs/ethtool.yaml | 32 ++++++------------------
 1 file changed, 8 insertions(+), 24 deletions(-)
Documentation/netlink/specs/ethtool.yaml +8 -24
index 129f413ea349..3abc576ff797 100644
@@ -60,22 +60,6 @@ doc: Partial family for Ethtool Netlink.
         type: nest
         nested-attributes: bitset-bits
 
-  -
-    name: u64-array
-    attributes:
-      -
-        name: u64
-        type: nest
-        multi-attr: true
-        nested-attributes: u64
-  -
-    name: s32-array
-    attributes:
-      -
-        name: s32
-        type: nest
-        multi-attr: true
-        nested-attributes: s32
   -
     name: string
     attributes:
@@ -705,16 +689,16 @@ doc: Partial family for Ethtool Netlink.
         type: u8
       -
         name: corrected
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
       -
         name: uncorr
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
       -
         name: corr-bits
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
   -
     name: fec
     attributes:
@@ -827,8 +811,8 @@ doc: Partial family for Ethtool Netlink.
         type: u32
       -
         name: index
-        type: nest
-        nested-attributes: s32-array
+        type: binary
+        sub-type: s32
   -
     name: module
     attributes:
Signature · 1 line
2.40.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jakub Kicinski

ethtool has some attrs which dump multiple scalars into an attribute. The spec currently expects one attr per entry.

Fixes a353318ebf24 ("tools: ynl: populate most of the ethtool spec")
Quoted 70 lines

---
CC: [email protected]

---
 Documentation/netlink/specs/ethtool.yaml | 32 ++++++------------------
 1 file changed, 8 insertions(+), 24 deletions(-)
Documentation/netlink/specs/ethtool.yaml +8 -25
index 129f413ea349..3abc576ff797 100644
@@ -60,22 +60,6 @@ doc: Partial family for Ethtool Netlink.
         type: nest
         nested-attributes: bitset-bits
 
-  -
-    name: u64-array
-    attributes:
-      -
-        name: u64
-        type: nest
-        multi-attr: true
-        nested-attributes: u64
-  -
-    name: s32-array
-    attributes:
-      -
-        name: s32
-        type: nest
-        multi-attr: true
-        nested-attributes: s32
   -
     name: string
     attributes:
@@ -705,16 +689,16 @@ doc: Partial family for Ethtool Netlink.
         type: u8
       -
         name: corrected
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
       -
         name: uncorr
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
       -
         name: corr-bits
-        type: nest
-        nested-attributes: u64-array
+        type: binary
+        sub-type: u64
   -
     name: fec
     attributes:
@@ -827,8 +811,8 @@ doc: Partial family for Ethtool Netlink.
         type: u32
       -
         name: index
-        type: nest
-        nested-attributes: s32-array
+        type: binary
+        sub-type: s32
   -
     name: module
     attributes:
--

2.40.1

#2 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Fri, 26 May 2023 15:06:53 -0700 you wrote:

ethtool has some attrs which dump multiple scalars into an attribute. The spec currently expects one attr per entry.

Fixes a353318ebf24 ("tools: ynl: populate most of the ethtool spec")

---
CC: [email protected]

[...]

Here is the summary with links:
- [net] netlink: specs: correct types of legacy arrays

    https://git.kernel.org/netdev/net/c/0684f29a89e5

You are awesome, thank you!

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