selftests: mptcp: add extra_args in do_transfer
authorGeliang Tang <geliang.tang@suse.com>
Fri, 4 Mar 2022 19:36:31 +0000 (11:36 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Mar 2022 05:54:30 +0000 (21:54 -0800)
commitcbfafac4cf8fa885c7c5d5b3914a9f9ce3b4565b
tree38d45105fc0d893dcd88d6ba18404f37e730a9d2
parent922fd2b39e5a3c0220974687ad2afcf5654819e6
selftests: mptcp: add extra_args in do_transfer

Instead of using a global variable mptcp_connect, this patch added
a new local variable extra_args in do_transfer() to store the extra
arguments passing to the mptcp_connect commands.

This patch also renamed the speed level 'least' to 'speed_*'. This
more flexible way can avoid the need to add new speed levels in the
future.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh