selftests: mptcp: add cfg_do_w for cfg_remove
authorGeliang Tang <geliangtang@gmail.com>
Fri, 26 Mar 2021 18:26:35 +0000 (11:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:05:15 +0000 (15:05 -0700)
commit2e580a63b5c214a89bcc3e243ee2058691cee001
treee5366ed4f9954a0e8a0f360a79ffd6ed5d43eb41
parent348d5c1dec60f5f50869a8e40315a66006897732
selftests: mptcp: add cfg_do_w for cfg_remove

In some testcases, we need to slow down the transmitting process. This
patch added a new argument named cfg_do_w for cfg_remove to allow the
caller to pass an argument to cfg_remove.

In do_rnd_write, use this cfg_do_w to control the transmitting speed.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_connect.c