Geliang Tang 9168ea02b8 selftests: mptcp: fix wait_rm_addr/sf parameters
The second input parameter of 'wait_rm_addr/sf $1 1' is misused. If it's
1, wait_rm_addr/sf will never break, and will loop ten times, then
'wait_rm_addr/sf' equals to 'sleep 1'. This delay time is too long,
which can sometimes make the tests fail.

A better way to use wait_rm_addr/sf is to use rm_addr/sf_count to obtain
the current value, and then pass into wait_rm_addr/sf.

Fixes: 4369c198e599 ("selftests: mptcp: test userspace pm out of transfer")
Cc: stable@vger.kernel.org
Suggested-by: Matthieu Baerts <matttbe@kernel.org>
Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231025-send-net-next-20231025-v1-2-db8f25f798eb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-27 08:47:07 -07:00
..
2023-04-24 12:28:34 -07:00
2023-10-26 20:02:41 -07:00
2023-08-28 18:46:47 -07:00
2023-09-01 15:58:21 -07:00
2023-08-24 10:41:47 -04:00
2023-06-29 10:11:10 -07:00
2023-07-13 19:13:24 -07:00
2023-09-12 09:10:36 -07:00
2023-10-15 08:25:18 -04:00
2023-02-23 09:37:29 -08:00
2023-08-28 19:03:24 -07:00
2023-10-15 20:07:52 +01:00
2023-04-25 11:05:04 -07:00
2023-08-28 18:46:47 -07:00
2023-08-21 13:46:25 -07:00
2023-09-08 10:06:56 -06:00