diff options
author | Amit Cohen <amitc@mellanox.com> | 2019-11-07 19:42:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-08 06:51:40 +0300 |
commit | ef7f6b16156f2a0d87a7315ede6b776e5280372c (patch) | |
tree | eb9949b9989405e161520128f72c6a2049f367bf /tools/testing/selftests/net/forwarding/devlink_lib.sh | |
parent | 6b45fe95fdbed9950c58186af7940cfed67a08c7 (diff) | |
download | linux-ef7f6b16156f2a0d87a7315ede6b776e5280372c.tar.xz |
selftests: devlink: Make devlink_trap_cleanup() more generic
Add proto parameter in order to enable the use of devlink_trap_cleanup()
in tests that use IPv6 protocol.
Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/devlink_lib.sh')
-rw-r--r-- | tools/testing/selftests/net/forwarding/devlink_lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/forwarding/devlink_lib.sh index 931ab26b2555..cbc38cc61873 100644 --- a/tools/testing/selftests/net/forwarding/devlink_lib.sh +++ b/tools/testing/selftests/net/forwarding/devlink_lib.sh @@ -393,7 +393,8 @@ devlink_trap_drop_cleanup() { local mz_pid=$1; shift local dev=$1; shift + local proto=$1; shift kill $mz_pid && wait $mz_pid &> /dev/null - tc filter del dev $dev egress protocol ip pref 1 handle 101 flower + tc filter del dev $dev egress protocol $proto pref 1 handle 101 flower } |