]> exis.tech > repos - linux.git/commit
selftests/net/openvswitch: add SET action test
authorMinxi Hou <houminxi@gmail.com>
Fri, 12 Jun 2026 13:05:03 +0000 (21:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 21:16:06 +0000 (14:16 -0700)
commit3b165c2a29cfb6453f26e1ac833ca6afd28d28cf
treedf80f91277fb0e01d691b7f4e12e8359d8b40eff
parent86bbdbac174231c6a1da839e45d656acae8b74f9
selftests/net/openvswitch: add SET action test

Add test_action_set exercising OVS_ACTION_ATTR_SET with an ipv4 dst
rewrite. The test verifies the SET action in three steps: first
confirm normal forwarding, then apply set(ipv4(dst=10.0.0.99)) to
rewrite the destination to an address nobody owns and verify ping
fails, then restore normal forwarding and verify connectivity
recovers.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20260612130503.311240-1-houminxi@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/openvswitch/openvswitch.sh