selftests: forwarding: lib.sh: Add start_tcp_traffic
authorPetr Machata <petrm@mellanox.com>
Thu, 27 Feb 2020 07:50:06 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:14 +0000 (11:10 -0800)
commit4113b04823948e40eda1c54dfadadad4bc01dcdb
tree55c014a5489f5e7b07a87dccf8fa175f6024833c
parent2b99e54b30ed56201dedd91e6049ed83aa9d2302
selftests: forwarding: lib.sh: Add start_tcp_traffic

Extract a helper __start_traffic() configurable by protocol type. Allow
passing through extra mausezahn arguments. Add a wrapper,
start_tcp_traffic().

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