selftests: openvswitch: add an initial flow programming case
authorAaron Conole <aconole@redhat.com>
Tue, 1 Aug 2023 21:22:22 +0000 (17:22 -0400)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Aug 2023 13:05:41 +0000 (15:05 +0200)
commit918423fda910380a19a1bcadd858e3e42fb501bb
treec70e9dd9a5f9c40be6419baa37545c2df7213aec
parentce650a1663354a6cad7145e7f5131008458b39d4
selftests: openvswitch: add an initial flow programming case

The openvswitch self-tests can test much of the control side of
the module (ie: what a vswitchd implementation would process),
but the actual packet forwarding cases aren't supported, making
the testing of limited value.

Add some flow parsing and an initial ARP based test case using
arping utility.  This lets us display flows, add some basic
output flows with simple matches, and test against a known good
forwarding case.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/openvswitch/openvswitch.sh
tools/testing/selftests/net/openvswitch/ovs-dpctl.py