Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp865267lqc; Fri, 8 Mar 2024 14:12:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDJBrOqCQzjEzJjP5E7qcBiLAgAjcCVPWkdL/JMinM73PEjE56VRWayHXv8TAjvc0MYGTRQ00XSEQ68d+CJddx9IkBZDeMp4UiNqTUnw== X-Google-Smtp-Source: AGHT+IGpih4+1W8Ag43xdkg+GwE6sQdemwNa4cs6RcoytPe0Hvp4fBllkgT6MQ6mPUfqJsHdJxtc X-Received: by 2002:a17:902:bb82:b0:1dd:6f53:e41 with SMTP id m2-20020a170902bb8200b001dd6f530e41mr1740143pls.29.1709935942031; Fri, 08 Mar 2024 14:12:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709935942; cv=pass; d=google.com; s=arc-20160816; b=bDMkHOePIslMT/X1ErPPQX/YsQ+Z5keLfwoswZdDg8pD05kBDkwOtpu90G+4lfGo5j PfTrvA6w8eFjP4tDBy47+to5AquVj387QX9kCPKsxiU58REtmjuNjvU6FSI9/xognVcT x2tIwHD2jYjv15UTblSTFFAP5GF4xW5JKrUHAnK0huY9Y+uQ2iq9lJT5klj0HfjQUQLS dcjVDu2L57k+264E6XXLXlg69e/NLZs818SiC4EJ9qUMs8CGscbsgnpH+amJjeeW7nhF BqxZd5ADX63QdNR5Fnef/u4MUmsr1E48APbqYjbEa3R7sNehpOCNlZWevieWnJaGT1qD c4iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=JcY0wC4CruLnGxS9Hg+eOUltgDkKZHdbOC3FXUt4f5s=; fh=2dk07KolaZJL0JeqFGRxwJVwvAyA78FaKBXVM6bwbyU=; b=VDvncV07b9o1o6dcEsDdqvz5oUz3fbaN2usooue3bC9FAgTVvA8hkcLScHRYDIkGa0 ZQPzh9R5j37z3Jc5HJgoVPU/k2QhZj7A1GGcWDxY/oqSSWjhLtdpNLxZ2PpTaTxNrpR1 c0cboqUqRBlXSvilE/U1IX585252oEoALkqI47o9W8NH5BG2uxDI9BWS03CqpeP+NpzT GpvWTE+duTETLVjnLYa2AKeFRx/AUsZ/leuj5S3siGZKlcWzGAX8edgRAR/xa9V9SUEL 26VN7fa9PCzrHA5Si52yqPqzAUIJrSfuFGue9FDfCQe1GJeSfGEOBOT5r3WBK8WU6yAr mcmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arHj7jRf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e16-20020a17090301d000b001dc07b8d0a9si271913plh.109.2024.03.08.14.12.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:12:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arHj7jRf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 83E75B2245F for ; Fri, 8 Mar 2024 22:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98CB9605DC; Fri, 8 Mar 2024 22:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="arHj7jRf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B2F5F605BD; Fri, 8 Mar 2024 22:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935829; cv=none; b=OF5A3dntUxuoE8oxoxffJTjlIImXNWP7PSCZSTIsdXlPKffYi48uhyaWgRrEbV3zhuTS5bH4agz/MKAi5Og5v5QLLNp1WUAvKPqjAmXRWNnS8sqQydtxepwaXZIXtiBUW3MPCSxhXKqcNLUaDrlTKtf9GL1D0Bj9dDjmWHC4/kU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935829; c=relaxed/simple; bh=4nVIS17p6hfpmz31cy1Qa7DP7XG9Y9xY1ocKKw5lq2w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eB4UWiF0TOnP3HRQnkhMfH/zpBMaP8Jz1G9sPXaI509i8Tgb5rDvhDUWklM/Zio1IXfd+bltjySE6mev1wHorDjuPWcL6IDpC/2Ttd8gFUnO4D1WlNWAM/12nyhcZ85vhu2VMjJXmAsvLbG+KNGt30vZLn5uOHKE/e4OXiOKjG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=arHj7jRf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3964C433F1; Fri, 8 Mar 2024 22:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709935829; bh=4nVIS17p6hfpmz31cy1Qa7DP7XG9Y9xY1ocKKw5lq2w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=arHj7jRfh0wt3L9GPo/NcZfTpEDVO0rDWgHW0Hq3xC/R8QlStosEhzSPo20eM4qCK LR1kZNEN5fQXlaFa5dBf+l+nQJIrUAV7Es1n47Uj15OPG6RL0Y2y36903rgu2tFh4m 2dncchbPM78GVaWEI4HuUBaQ6WnxsAS49iAhxQdmFvb1CHtsutAWVmWttfdBVMpCVK 4UyDqWSC+lmoyWwQc3/UNoZpBUuSmwXfGbusYPAsjRQc2UliH33dm1rkx9jbG3PXRn QqugqBsSWbpXcOxTL7Cev8WShjKYe1ptr/OOD5Nlyoop1S1k9VdZlNzeNxj7p2IuFJ V2+gQ06I4dGAQ== From: "Matthieu Baerts (NGI0)" Date: Fri, 08 Mar 2024 23:10:09 +0100 Subject: [PATCH net-next 02/15] selftests: mptcp: connect: add dedicated port counter Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240308-upstream-net-next-20240308-selftests-mptcp-unification-v1-2-4f42c347b653@kernel.org> References: <20240308-upstream-net-next-20240308-selftests-mptcp-unification-v1-0-4f42c347b653@kernel.org> In-Reply-To: <20240308-upstream-net-next-20240308-selftests-mptcp-unification-v1-0-4f42c347b653@kernel.org> To: mptcp@lists.linux.dev, Mat Martineau , Geliang Tang , Geliang Tang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, "Matthieu Baerts (NGI0)" X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1385; i=matttbe@kernel.org; h=from:subject:message-id; bh=uZotqfOJH05r/mkzZnPzrup9bfcx9v2c7hqAmWQhC7o=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBl64zJiuJltdcfRCNiztqCUe/Di09/CiDya2IMd PZCFRiYb/SJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZeuMyQAKCRD2t4JPQmmg c3YUEAC2gns6Li7mDBS6aBV6mvpF2w8E7QmIvpWFTuQR6Cg4F88IpXwGKE+WeObG7NVg1rfdUCf Yh0PewFQKsGBQWXO/caFVrNi1SNRm1D0910PfgX3GGGILTTS8cbRisqFIOzny35cFyRY/7WD7GY fchWjA6SCKs07cs6K3buCh3eSGyC4avlVNZh39DeW/GZcm+EkQtSdnvQIziLsvo2vtS4IeLQ2St xTL0Yg8+BWHxbaVr2qiPLfgNDBQxJJK46cUqlrdJH+fbQibTND7L3CxzsjwJpmAgUqHHXYup6XP J6uu5UNRcwQZwrukTNkS/WSQiIW++qR7RKPMiYbXMTuxgXXm72Fd9P+LLYR2M55W7sVxbLNPPGS +sibcKVdjcev3grIkj0srjemto5clMqpUGGxNCan6Fe9q1ZEBbv3bwzLHkysxpdw6ozfFi3HB1+ q2VMytrN/9G6IlAAB5AASiUuAkyBuzi0r/oaHvbAroI/z37GiARbDEWRqMRbqI96QRIb/S50VRn cYg0XSdtV6dDApKqdUVrNAf+LPGsmQU4hK2ikpTieyeimlFO2ocTNd1eoW7y2XoJaodQ7XYITav FIcWX7ZIXw0I+x7qEckDTr6sPbn/NKGEGqoiSL3CgCd7mESc7V7S8zspNVo+/S2WV6xU4Xs9wyS Cclld2D716fW4Ig== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 From: Geliang Tang This patch adds a new dedicated counter 'port' instead of TEST_COUNT to increase port numbers in mptcp_connect.sh. This can avoid outputting discontinuous test counters. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh index 679e366c8f6b..ab3f52434753 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh @@ -33,6 +33,7 @@ do_tcp=0 checksum=false filesize=0 connect_per_transfer=1 +port=$((10000 - 1)) if [ $tc_loss -eq 100 ];then tc_loss=1% @@ -313,8 +314,7 @@ do_transfer() local local_addr="$6" local extra_args="$7" - local port - port=$((10000+TEST_COUNT)) + port=$((port + 1)) TEST_COUNT=$((TEST_COUNT+1)) if [ "$rcvbuf" -gt 0 ]; then @@ -710,7 +710,7 @@ EOF echo "INFO: test $msg" - TEST_COUNT=10000 + port=$((20000 - 1)) local extra_args="-o TRANSPARENT" do_transfer ${listener_ns} ${connector_ns} MPTCP MPTCP \ ${connect_addr} ${local_addr} "${extra_args}" -- 2.43.0