Skip to contentSkip to conversation

netlink: specs: tc: all actions are indexed arrays

PATCH Applied Jakub Kicinski 2 participants 2 messages May 13, 2025 – May 15, 2025

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 netlink: specs: tc: all actions are indexed arrays

Some TC filters have actions listed as indexed arrays of nests and some as just nests. They are all indexed arrays, the handling is common across filters.

Fixes 2267672a6190 ("doc/netlink/specs: Update the tc spec")

---
This is really borderline for net vs net-next decision IMO. I'm posting it for net because repost will make it late for net-next merge. But happy to go with net-next.

---
 Documentation/netlink/specs/tc.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/netlink/specs/tc.yaml +4 -2
index 5e1ff04f51f2..953aa837958b 100644
@@ -2017,7 +2017,8 @@ protonum: 0
     attributes:
       -
         name: act
-        type: nest
+        type: indexed-array
+        sub-type: nest
         nested-attributes: tc-act-attrs
       -
         name: police
@@ -2250,7 +2251,8 @@ protonum: 0
     attributes:
       -
         name: act
-        type: nest
+        type: indexed-array
+        sub-type: nest
         nested-attributes: tc-act-attrs
       -
         name: police
Signature · 1 line
2.49.0
#1 lore raw
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 8 lines · On Tue, 13 May 2025 15:16:38 -0700 you wrote:

Some TC filters have actions listed as indexed arrays of nests and some as just nests. They are all indexed arrays, the handling is common across filters.

Fixes 2267672a6190 ("doc/netlink/specs: Update the tc spec")

[...]

Here is the summary with links:
- [net] netlink: specs: tc: all actions are indexed arrays

    https://git.kernel.org/netdev/net/c/f3dd5fb2fa49

You are awesome, thank you!

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