Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B5BB12B83 for ; Fri, 8 Dec 2023 10:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qLgpDYCW" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702030051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aQqGLMxuM5dWO4qSaG2HLVKv0JRCGoyUt4YP/CLCUTA=; b=qLgpDYCW4UKBmRjL4N2qC0nejI4kJyL2t/sk6pPn8SihDx2ZHSmDoC7DdCfqrchhZ9q22I xSQzKcjFGsq0eofKpkMLwVLwTl8c/P9v+MF9+A4U6X1LB6Lye0uExHWR+IV9GC/3/6VS0y g9U7OG5JF4XGcHC4abiaPzA/IewDsdY= From: Geliang Tang To: mptcp@lists.linux.dev Cc: Geliang Tang , Geliang Tang Subject: [PATCH mptcp-next v14 25/25] selftests: mptcp: rm userspace addr with random order Date: Fri, 8 Dec 2023 18:07:38 +0800 Message-Id: In-Reply-To: References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Geliang Tang Previously, when deleting a userspace address and subflow, it was necessary to follow the current order of deleting the address and then deleting the subflow. With this series of changes, addresses and subflows can be deleted in any order. This patch uses random numbers to add this type of tests. Signed-off-by: Geliang Tang --- tools/testing/selftests/net/mptcp/mptcp_join.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh index a6f60f3896d5..491b852f55fb 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -3501,11 +3501,12 @@ userspace_tests() chk_mptcp_info subflows 1 subflows 1 chk_subflows_total 2 2 chk_mptcp_info add_addr_signal 1 add_addr_accepted 1 - userspace_pm_rm_addr $ns1 10 if [ $((RANDOM%2)) -eq 0 ]; then + userspace_pm_rm_addr $ns1 10 userspace_pm_rm_sf $ns1 ::ffff:10.0.2.1 $SUB_ESTABLISHED else userspace_pm_rm_sf $ns1 10.0.2.1 $SUB_ESTABLISHED + userspace_pm_rm_addr $ns1 10 fi chk_rm_nr 1 1 invert chk_mptcp_info subflows 0 subflows 0 -- 2.35.3