Skip to content

RFC selftests: net: Switch pmtu.sh to use the internal ovs script.

Aaron Conole linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests: openvswitch: Support explicit tunnel port creation.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+75 -62 replies
2/7selftests: openvswitch: Refactor actions parsing.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+23 -221 reply
3/7selftests: openvswitch: Add set() and set_masked() support.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+35 -43 replies
4/7selftests: openvswitch: Add support for tunnel() key.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+162 -22 replies
5/7selftests: openvswitch: Support implicit ipv6 arguments.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+28 -152 replies
6/7selftests: net: Use the provided dpctl rather than the vswitchd for tests.tools/testing/selftests/net/pmtu.sh+67 -202 replies
7/7selftests: net: add config for openvswitchtools/testing/selftests/net/config+5 -01 reply

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/7R-b T-b
2/7R-b T-b
3/7R-b T-b
4/7
5/7R-b T-b
6/7
7/7R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC net-next 0/7] selftests: net: Switch pmtu.sh to use the internal ovs script.

Currently, if a user wants to run pmtu.sh and cover all the provided test cases, they need to install the Open vSwitch userspace utilities. This dependency is difficult for users as well as CI environments, because the userspace build and setup may require lots of support and devel packages to be installed, system setup to be correct, and things like permissions and selinux policies to be properly configured.

The kernel selftest suite includes an ovs-dpctl.py utility which can interact with the openvswitch module directly. This lets developers and CI environments run without needing too many extra dependencies - just the pyroute2 python package.

This series enhances the ovs-dpctl utility to provide support for set() and tunnel() flow specifiers, better ipv6 handling support, and the ability to add tunnel vports, and LWT interfaces. Finally, it modifies the pmtu.sh script to call the ovs-dpctl.py utility rather than the typical OVS userspace utilities.

NOTE: This could also be applied as-is. I'm trying to get the vng test
working in my environment, so I submitted as RFC because I didn't get to test with the config change in 7/7.

Aaron Conole (6):
selftests: openvswitch: Support explicit tunnel port creation.
selftests: openvswitch: Refactor actions parsing.
selftests: openvswitch: Add set() and set_masked() support.
selftests: openvswitch: Add support for tunnel() key.
selftests: openvswitch: Support implicit ipv6 arguments.
selftests: net: Use the provided dpctl rather than the vswitchd for
tests.
selftests: net: add config for openvswitch

 .../selftests/net/openvswitch/ovs-dpctl.py    | 370 +++++++++++++++---
 tools/testing/selftests/net/config            |   5 ++++
 tools/testing/selftests/net/pmtu.sh           |  87 +++-
 3 files changed, 394 insertions(+), 68 deletions(-)
Signature · 1 line
2.45.1