]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
selftests: forwarding: Test removal of mirroring
authorPetr Machata <petrm@mellanox.com>
Wed, 23 May 2018 16:35:07 +0000 (18:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 02:14:36 +0000 (22:14 -0400)
Test that when flower-based mirror action is removed, mirroring stops.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_flower.sh

index 2e54407d8954cff29bdef8763f1d332cf1286111..12914f40612d36e7113ef905091bf59fb9d314e2 100755 (executable)
@@ -67,6 +67,11 @@ test_span_gre_dir_acl()
        test_span_gre_dir_ips "$@" 192.0.2.3 192.0.2.4
 }
 
+fail_test_span_gre_dir_acl()
+{
+       fail_test_span_gre_dir_ips "$@" 192.0.2.3 192.0.2.4
+}
+
 full_test_span_gre_dir_acl()
 {
        local tundev=$1; shift
@@ -83,6 +88,9 @@ full_test_span_gre_dir_acl()
                          "$forward_type" "$backward_type"
        mirror_uninstall $swp1 $direction
 
+       # Test lack of mirroring after ACL mirror is uninstalled.
+       fail_test_span_gre_dir_acl "$tundev" "$direction"
+
        log_test "$direction $what ($tcflags)"
 }