]> www.infradead.org Git - nvme.git/commit
selftests: openvswitch: Refactor actions parsing.
authorAaron Conole <aconole@redhat.com>
Tue, 25 Jun 2024 17:22:40 +0000 (13:22 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Jun 2024 22:44:07 +0000 (15:44 -0700)
commit37de65a764ed329408a7ce339ee6283a4a5b682c
tree09c6c66d0f4aa235804b057595b19b35c4d40fbd
parentf94ecbc920925d5922d68a434f76aa8ef8d7f21e
selftests: openvswitch: Refactor actions parsing.

Until recently, the ovs-dpctl utility was used with a limited actions set
and didn't need to have support for multiple similar actions.  However,
when adding support for tunnels, it will be important to support multiple
set() actions in a single flow.  When printing these actions, the existing
code will be unable to print all of the sets - it will only print the
first.

Refactor this code to be easier to read and support multiple actions of the
same type in an action list.

Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20240625172245.233874-3-aconole@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/openvswitch/ovs-dpctl.py