diff options
author | Petr Machata <petrm@mellanox.com> | 2018-05-31 19:52:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-01 14:11:01 -0400 |
commit | 2004a9bcb8ff2ceeea722441d445cd6e0755c2c4 (patch) | |
tree | 4dc0338454c8c8e20124e497336858e66c9c0f66 /tools/testing/selftests/net/forwarding/mirror_vlan.sh | |
parent | net: mvpp2: Split the PPv2 driver to a dedicated directory (diff) | |
download | linux-dev-2004a9bcb8ff2ceeea722441d445cd6e0755c2c4.tar.xz linux-dev-2004a9bcb8ff2ceeea722441d445cd6e0755c2c4.zip |
selftests: forwarding: lib: Move here vlan_capture_{, un}install()
Move vlan_capture_install() and vlan_capture_uninstall() from
mirror_vlan.sh test to lib.sh so that it can be reused in other tests.
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 | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/testing/selftests/net/forwarding/mirror_vlan.sh b/tools/testing/selftests/net/forwarding/mirror_vlan.sh index 1e10520dccf4..758b6d027971 100755 --- a/tools/testing/selftests/net/forwarding/mirror_vlan.sh +++ b/tools/testing/selftests/net/forwarding/mirror_vlan.sh @@ -76,29 +76,6 @@ test_vlan() test_vlan_dir egress 0 8 } -vlan_capture_add_del() -{ - local add_del=$1; shift - local pref=$1; shift - local dev=$1; shift - local filter=$1; shift - - tc filter $add_del dev "$dev" ingress \ - proto 802.1q pref $pref \ - flower $filter \ - action pass -} - -vlan_capture_install() -{ - vlan_capture_add_del add 100 "$@" -} - -vlan_capture_uninstall() -{ - vlan_capture_add_del del 100 "$@" -} - do_test_span_vlan_dir_ips() { local expect=$1; shift |