Skip to content

selftests: openvswitch: add support for testing upcall interface

Aaron Conole linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests: openvswitch: add interface supporttools/testing/selftests/net/openvswitch/openvswitch.sh tools/testing/selftests/net/openvswitch/ovs-dpctl.py+163 -100 repliesApplied
2/3selftests: openvswitch: add flow dump supporttools/testing/selftests/net/openvswitch/ovs-dpctl.py+1026 -00 repliesApplied
3/3selftests: openvswitch: add support for upcall testingtools/testing/selftests/net/openvswitch/openvswitch.sh tools/testing/selftests/net/openvswitch/ovs-dpctl.py+165 -110 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] selftests: openvswitch: add support for testing upcall interface

The existing selftest suite for openvswitch will work for regression testing the datapath feature bits, but won't test things like adding interfaces, or the upcall interface. Here, we add some additional test facilities.

First, extend the ovs-dpctl.py python module to support the OVS_FLOW and OVS_PACKET netlink families, with some associated messages. These can be extended over time, but the initial support is for more well known cases (output, userspace, and CT).

Next, extend the test suite to test upcalls by adding a datapath, monitoring the upcall socket associated with the datapath, and then dumping any upcalls that are received. Compare with expected ARP upcall via arping.

Aaron Conole (3):
selftests: openvswitch: add interface support
selftests: openvswitch: add flow dump support
selftests: openvswitch: add support for upcall testing

 .../selftests/net/openvswitch/openvswitch.sh  |   89 +-
 .../selftests/net/openvswitch/ovs-dpctl.py    | 1276 ++++++++++++++++-
 2 files changed, 1349 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.2