selftests: devlink: Make devlink_trap_cleanup() more generic
authorAmit Cohen <amitc@mellanox.com>
Thu, 7 Nov 2019 16:42:12 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:40 +0000 (19:51 -0800)
commitef7f6b16156f2a0d87a7315ede6b776e5280372c
treeeb9949b9989405e161520128f72c6a2049f367bf
parent6b45fe95fdbed9950c58186af7940cfed67a08c7
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>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_l2_drops.sh
tools/testing/selftests/net/forwarding/devlink_lib.sh