|
Jiri Slaby |
1fac2d |
From: Aaron Conole <aconole@redhat.com>
|
|
Jiri Slaby |
1fac2d |
Date: Wed, 12 Apr 2023 07:58:28 -0400
|
|
Jiri Slaby |
1fac2d |
Subject: [PATCH] selftests: openvswitch: adjust datapath NL message
|
|
Jiri Slaby |
1fac2d |
declaration
|
|
Jiri Slaby |
1fac2d |
References: bsc#1012628
|
|
Jiri Slaby |
1fac2d |
Patch-mainline: 6.2.12
|
|
Jiri Slaby |
1fac2d |
Git-commit: 306dc21361993f4fe50a15d4db6b1a4de5d0adb0
|
|
Jiri Slaby |
1fac2d |
|
|
Jiri Slaby |
1fac2d |
[ Upstream commit 306dc21361993f4fe50a15d4db6b1a4de5d0adb0 ]
|
|
Jiri Slaby |
1fac2d |
|
|
Jiri Slaby |
1fac2d |
The netlink message for creating a new datapath takes an array
|
|
Jiri Slaby |
1fac2d |
of ports for the PID creation. This shouldn't cause much issue
|
|
Jiri Slaby |
1fac2d |
but correct it for future cases where we need to do decode of
|
|
Jiri Slaby |
1fac2d |
datapath information that could include the per-cpu PID map.
|
|
Jiri Slaby |
1fac2d |
|
|
Jiri Slaby |
1fac2d |
Fixes: 25f16c873fb1 ("selftests: add openvswitch selftest suite")
|
|
Jiri Slaby |
1fac2d |
Signed-off-by: Aaron Conole <aconole@redhat.com>
|
|
Jiri Slaby |
1fac2d |
Link: https://lore.kernel.org/r/20230412115828.3991806-1-aconole@redhat.com
|
|
Jiri Slaby |
1fac2d |
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
Jiri Slaby |
1fac2d |
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
|
Jiri Slaby |
1fac2d |
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
|
Jiri Slaby |
1fac2d |
---
|
|
Jiri Slaby |
1fac2d |
tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +-
|
|
Jiri Slaby |
1fac2d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Jiri Slaby |
1fac2d |
|
|
Jiri Slaby |
1fac2d |
diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
|
|
Jiri Slaby |
1fac2d |
index 3243c90d..5d467d19 100644
|
|
Jiri Slaby |
1fac2d |
--- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
|
|
Jiri Slaby |
1fac2d |
+++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
|
|
Jiri Slaby |
1fac2d |
@@ -62,7 +62,7 @@ class OvsDatapath(GenericNetlinkSocket):
|
|
Jiri Slaby |
1fac2d |
nla_map = (
|
|
Jiri Slaby |
1fac2d |
("OVS_DP_ATTR_UNSPEC", "none"),
|
|
Jiri Slaby |
1fac2d |
("OVS_DP_ATTR_NAME", "asciiz"),
|
|
Jiri Slaby |
1fac2d |
- ("OVS_DP_ATTR_UPCALL_PID", "uint32"),
|
|
Jiri Slaby |
1fac2d |
+ ("OVS_DP_ATTR_UPCALL_PID", "array(uint32)"),
|
|
Jiri Slaby |
1fac2d |
("OVS_DP_ATTR_STATS", "dpstats"),
|
|
Jiri Slaby |
1fac2d |
("OVS_DP_ATTR_MEGAFLOW_STATS", "megaflowstats"),
|
|
Jiri Slaby |
1fac2d |
("OVS_DP_ATTR_USER_FEATURES", "uint32"),
|
|
Jiri Slaby |
1fac2d |
--
|
|
Jiri Slaby |
1fac2d |
2.35.3
|
|
Jiri Slaby |
1fac2d |
|