selftests: forwarding: Move start_/stop_traffic from mlxsw to lib.sh
authorPetr Machata <petrm@mellanox.com>
Wed, 18 Dec 2019 14:55:21 +0000 (14:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 21:32:30 +0000 (13:32 -0800)
commit4cf9b8f9929285b91f5f22652ad5175a2206303b
treed0f8da66c5e5fab0d80dcdc5b10c277859958ca5
parent19f405b988e7bdee75e4936d27d2909c11574a7c
selftests: forwarding: Move start_/stop_traffic from mlxsw to lib.sh

These two functions are used for starting several streams of traffic, and
then stopping them later. They will be handy for the test coverage of ETS
Qdisc. Move them from mlxsw-specific qos_lib.sh to the generic lib.sh.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/qos_lib.sh
tools/testing/selftests/net/forwarding/lib.sh