Skip to contentSkip to conversation

selftests: openvswitch: adjust datapath NL message declaration

PATCH Applied Aaron Conole 2 participants 2 messages Apr 12, 2023 – Apr 13, 2023

Subsystems (4)
lore
Share & tools
lore

Aaron Conole

author maintainer
#0 lore raw

PATCH 1/1 selftests: openvswitch: adjust datapath NL message declaration

The netlink message for creating a new datapath takes an array of ports for the PID creation. This shouldn't cause much issue but correct it for future cases where we need to do decode of datapath information that could include the per-cpu PID map.

Fixes 25f16c873fb1 ("selftests: add openvswitch selftest suite")
---
 tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/openvswitch/ovs-dpctl.py +1 -1
index 096f07fb177d..21b1b8deda7d 100644
@@ -938,7 +938,7 @@ class OvsDatapath(GenericNetlinkSocket):
         nla_map = (
             ("OVS_DP_ATTR_UNSPEC", "none"),
             ("OVS_DP_ATTR_NAME", "asciiz"),
-            ("OVS_DP_ATTR_UPCALL_PID", "uint32"),
+            ("OVS_DP_ATTR_UPCALL_PID", "array(uint32)"),
             ("OVS_DP_ATTR_STATS", "dpstats"),
             ("OVS_DP_ATTR_MEGAFLOW_STATS", "megaflowstats"),
             ("OVS_DP_ATTR_USER_FEATURES", "uint32"),
Signature · 1 line
2.39.2
#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 9 lines · On Wed, 12 Apr 2023 07:58:28 -0400 you wrote:

The netlink message for creating a new datapath takes an array of ports for the PID creation. This shouldn't cause much issue but correct it for future cases where we need to do decode of datapath information that could include the per-cpu PID map.

Fixes 25f16c873fb1 ("selftests: add openvswitch selftest suite")

[...]

Here is the summary with links:
- [net] selftests: openvswitch: adjust datapath NL message declaration

    https://git.kernel.org/netdev/net/c/306dc2136199

You are awesome, thank you!

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