From patchwork Wed Nov 22 11:31:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13464628 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.44]) (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 B912451035 for ; Wed, 22 Nov 2023 11:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="YbeuS3hs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zhyf2gCU78MNPP4XIPwbKqPuPExsTgwM8IwK0IjEg4pHUdMuffP27s+vfo9lE0nFxUGa961olYcqXf8rWYhwIUcbpE2l6F9HNBwjWpeNrSQAFVTPOhe4R58T3d8EkEd5oFOXzDZFLJlzEPCPUCyHRbLTqEHHW2LUy+lb213+/DsNe6BRZZypovKalH0mHSTfkfJ7Tw+ueYvtZv1O53WDScFCHxM0FflnX5PX6TXXuawLJWXLoHYBc/LwPNH1N0Mi4bcCgvE4pvqgXZ7rMY6OULgf6gp4kPsA+9PPv0aTArBlvr3IP/3Sz4W2/Qlqxe8Vcu+J0/7wwRgzjMZn5VXbug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PLOe+CQcYe9FqZu581+QjycQ0uUj8Rq0ecFVdF9B/fQ=; b=bKRDIUryMpA0LjQmEM70bKvoSVrZjeiwu09SElfVySLBpyzJMs3TXy1eci8VW+bcF9Ntux32R/QgbshjavJ1pxcw5l5NaI/gNZneR9glx66wZUBohHJ75WTtf4NIh1Sp0lwvOJ2x37LGQyA9z3xG3FcxwO3AItp3VXV4kHQGIUA+2UxfZGhTvjAI+kZjtBdBi/NzRKmvnn5TR0wA8rO1gslYeRGMiKhC2si8Wvcr/dkNluJcSoetyB7fwCqBJjoEKqReSAu4Uyc+2tmPI56R7zw69537VJ6mw6gCzSw0HneJZKqvbWTl04PqiKpp0jAp+3O0aP0cxzBBij4QCqiZaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PLOe+CQcYe9FqZu581+QjycQ0uUj8Rq0ecFVdF9B/fQ=; b=YbeuS3hsyLxe+slLCvWYJ5msRk0DCrBYoWe9dNVmQBchitkIaCiIsbNkVT9vzMVTgNzjg0ZY6D+q5jK5R+/QhHqCMjqe+hoPVHnVLtD510rOmA3X2rV2wylnmVclkVQ+ya+gQx9THtOV4enJkMj0Aru0RsPTuC+rpoixu/vDAmvhv+vzytMiq1zhVT4hFfXnWx7bCPrF4NwecggyqHIbPPXw7ot6OKPL3dler+Pkc1fay3SNivr4Ep/CZiTW5O+ZJ9nzUW8nLKBxq0E2eX7+uG2WmQCpSbKBwtnsHeX9QUIqDt2k6qOdhp4vsgdtX44jodWdkLTMLP845/TI6L9z4A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) by PAXPR04MB8333.eurprd04.prod.outlook.com (2603:10a6:102:1c0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.17; Wed, 22 Nov 2023 11:33:19 +0000 Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::7102:259:f268:5321]) by HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::7102:259:f268:5321%7]) with mapi id 15.20.7025.017; Wed, 22 Nov 2023 11:33:19 +0000 From: Geliang Tang To: mptcp@lists.linux.dev Cc: Geliang Tang Subject: [PATCH mptcp-next v4 17/33] selftests: mptcp: connect: add PORT instead of TEST_COUNT Date: Wed, 22 Nov 2023 19:31:05 +0800 Message-Id: <904771031cfaa44eeb41df15fadd7cdb78d4b0e5.1700652422.git.geliang.tang@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0088.apcprd02.prod.outlook.com (2603:1096:4:90::28) To HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB3497:EE_|PAXPR04MB8333:EE_ X-MS-Office365-Filtering-Correlation-Id: b848e7d4-c23c-4f13-3cb4-08dbeb4ed36a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NZHlBKvfkIRxHNpgZDcT+SutT3muR1c8qIK6Cpqlu4rjtUZVcyfjiOrf/PCLIYm71RzoxLebxbFxbWeDvyvoz9hqL5Z8HDssR3A+nnl+Fu4EqilWO7siMx85P/tyHXHNdAYAAGVXGWNu0PnMWZIEFWm6Xmaey2E/JASCuIrE0F1fPjJQOtiveQRJSHviULrjYclSDtcskzrcm2GNc8IzrpJSo7YZeN5I5OmY+lU1DYfuS9l4Xp94eALR8+RPvJiXQftzgzdOhFWzHncTX7UwDIweBkCLSF0Ca2vixCX8yPtQwqxHR4nodJ0fU28ukULo/TnG60lLoYpkDKNnn2F7aYMz1d3tXDTXfDOcOX9Kaf4QnBqdP38dIieLYnNeDzWRlpWcURMD0m6JOM3NBQiS+oboeKMNvizy8aS47TQVh1rp5B1aCJg5uqV+8vlxKGGi4A9+uJosiSuPRL+m+6+2YaQsO4IskYSHbEtuKSDQn0tG/FhnxJ7kQ4yQoTHc1wd/Ky3S/4zYphq0MmB2rF5+Bg629JKlm5GOHMykKSsXaVb4keJzJ2Bznpu8ajdXf9V9HYxefrgI0JQlenQhkXZsoY0cMfdHiJKiNh6TUm1IhNI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0402MB3497.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(376002)(396003)(346002)(39860400002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(6506007)(2616005)(107886003)(26005)(6512007)(6666004)(316002)(6486002)(478600001)(83380400001)(66556008)(6916009)(66946007)(66476007)(44832011)(4326008)(8676002)(5660300002)(38100700002)(86362001)(8936002)(2906002)(41300700001)(36756003)(13296009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bfQmuceRckeep5kYs256SZQdwZ3vRHRrNPjOCvZLRWUm1t5UwPSz183clDUFD24z3MrIH95nz3cH6KVmPLFXWlFk3jfPbTsW1LPHZ6ONKyEL2wpz89JYdG4/q565IKGnR0BP63CiH/RiAXCSv+kB21A4QQh8az6lLlLLkRfLUe1FL6o7+aqGjXV+SDufJKn2SJjccljFGzXWLci7D9xXA/P1wJE6zqBKgvTTnijOV9PiuUFxTpbElWQE0QnadiCfSUrVh2tRt0uUcOc+XW+3uQzxW8TjtsMONdO2bsXLF3NpCJvyVdpR4B3DuN3L/WHgtn+nbFQ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D6bOQG7SZWZt+5SMGmi9giMlI4S/iitFhKjDWBcfa81glOm+Ps36409S0rR+boMZqy32G9KlelTzAwOSkGCu/b6zChniwJ7xuHgX7dPB5ykjoNurcPRxfronF5Qiu4FpX4kZXGfASV4xY4BM9NI7nJBPLfpqNMETh7cdStIuevoL5P9lL7l49iIEcAV/TVzYAzXWCDqjw5DI3e8aYCA== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: b848e7d4-c23c-4f13-3cb4-08dbeb4ed36a X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3497.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 11:33:19.1228 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UIqh9RvbGCB+FmbRgElqr7WU56bbYn1AWDuXP0yDVEgOD86U8TnvUqV8+1mqudohWgvpgk4/8QbJ740S6Qeb8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8333 This patch adds a new 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 --- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh index d085a32f662a..560eadc1de85 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh @@ -28,6 +28,7 @@ do_tcp=0 checksum=false filesize=0 connect_per_transfer=1 +PORT=0 if [ $tc_loss -eq 100 ];then tc_loss=1% @@ -308,8 +309,9 @@ do_transfer() local extra_args="$7" local port - port=$((10000+$TEST_COUNT)) + port=$((10000+$PORT)) TEST_COUNT=$((TEST_COUNT+1)) + PORT=$((PORT+1)) if [ "$rcvbuf" -gt 0 ]; then extra_args="$extra_args -R $rcvbuf" @@ -691,7 +693,7 @@ EOF mptcp_lib_print_info "INFO: test $msg" - TEST_COUNT=10000 + PORT=10000 local extra_args="-o TRANSPARENT" do_transfer ${listener_ns} ${connector_ns} MPTCP MPTCP \ ${connect_addr} ${local_addr} "${extra_args}"