diff options
author | Petr Machata <petrm@mellanox.com> | 2018-05-31 19:52:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-01 14:11:01 -0400 |
commit | 900530f3f8731606a8dfb847b7e0d467250f9665 (patch) | |
tree | 0b0bee058e2796681ab09ee375e9eeb239f3bf4c /tools/testing/selftests/net/forwarding/mirror_vlan.sh | |
parent | selftests: forwarding: lib: Move here vlan_capture_{, un}install() (diff) | |
download | linux-dev-900530f3f8731606a8dfb847b7e0d467250f9665.tar.xz linux-dev-900530f3f8731606a8dfb847b7e0d467250f9665.zip |
selftests: forwarding: mirror_lib: Move here do_test_span_vlan_dir_ips()
Move the function do_test_span_vlan_dir_ips() from mirror_vlan.sh test
to a library file mirror_lib.sh to allow reuse. Fill in other entry
points similar to other testing functions in mirror_lib.sh, they will be
useful in following patches.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rwxr-xr-x | tools/testing/selftests/net/forwarding/mirror_vlan.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/testing/selftests/net/forwarding/mirror_vlan.sh b/tools/testing/selftests/net/forwarding/mirror_vlan.sh index 758b6d027971..20b37a53657e 100755 --- a/tools/testing/selftests/net/forwarding/mirror_vlan.sh +++ b/tools/testing/selftests/net/forwarding/mirror_vlan.sh @@ -76,21 +76,6 @@ test_vlan() test_vlan_dir egress 0 8 } -do_test_span_vlan_dir_ips() -{ - local expect=$1; shift - local dev=$1; shift - local vid=$1; shift - local direction=$1; shift - local ip1=$1; shift - local ip2=$1; shift - - vlan_capture_install $dev "vlan_id $vid" - mirror_test v$h1 $ip1 $ip2 $dev 100 $expect - mirror_test v$h2 $ip2 $ip1 $dev 100 $expect - vlan_capture_uninstall $dev -} - test_tagged_vlan_dir() { local direction=$1; shift |