]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: devlink: Export functions to devlink library
authorAmit Cohen <amitc@mellanox.com>
Thu, 7 Nov 2019 16:42:11 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:40 +0000 (19:51 -0800)
commitc9f6fd69b53b687f392c0dcb1166e6588bd78e4f
treece69a162316e96bad030106e5b42db7dc56e671c
parent0803dca7a9291369e2f875e850c7838d869876d6
selftests: devlink: Export functions to devlink library

l2_drops_test() is used to check that drop traps are functioning as
intended. Currently it is only used in the layer 2 test, but it is also
useful for the layer 3 test introduced in the subsequent patch.

l2_drops_cleanup() is used to clean configurations and kill mausezahn
proccess.

Export the functions to the common devlink library to allow it to be
re-used by future tests.

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