From patchwork Wed Nov 22 11:31:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13464637 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2052.outbound.protection.outlook.com [40.107.21.52]) (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 231DA3FB06 for ; Wed, 22 Nov 2023 11:34:15 +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="Bw+1GF7y" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a6EvWEDccBAIKtvdjRtRrKRDirUvH0OWD8scFvOopEIIWziFWGV5LadJFGinTboMKUZkT3GNOS6vRR+tyrYKqG7678yXNup0p9VTclRx58PhfmXNZLD0FZgnAAGpZKNHLJ6YdDi6cL6ZN1sbnTiVJc+WusvJBc/MMLfPDHxOZcoaxXMxnVubMLrF3ZOy3ILMf1NFr87GzkTf3VbeIB6A/x2Sp0j530uZ6zOMGep/+KpCwoAVU2toadvJwbaT49mNcL7J5ME3ez2vm+5e0SKT8TUwH6PPMv3rFk+MnuRJs01yr0D/b3OnAOa7aylU8ZeeY1xg84E4f1+60RP/sdd/tw== 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=fnrbHek0IzYTAneu92fpPXnq2J8mQLj2jvDJNMUCwJE=; b=DjzhnPqLDHQ9Rxfme7FAo0m6vKFybD0jqq3McP/JmKA505gxIoicJAT2AVUfZb8QRCi0DkO2xYX70u4WNZbV8i4WQTqEIjmor/21/neFpMCUhL90gVHc+rI2CTDorBmeBiEAwXN6zL/Xzx3g6cxKk+1ufX3lBlFogcM8oXOUNOuEIawNtGY3dXzHUZcL2ih3gXBQk4NYMsV4EJp3gfoIMHkd9WrFYUWMky3OTYFvqT3Yc7/PZkmOh7oL/Mw+E2qNWQceKy/CZLL9Gb2rxzNcvIhj0CRHgh9dIJP55CX8SLwMAJemXheTd0Qak5ebgD3NJEJdljZNsM9pJhKyU1l/Kw== 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=fnrbHek0IzYTAneu92fpPXnq2J8mQLj2jvDJNMUCwJE=; b=Bw+1GF7yw3DOFAIiY5OPItwEn0k4PEoHJsPdcgB6TJ+VYZ3U84NNtvsfdlLq53D9JGOh0w1vFHNwuvr6gP+Tx/ZH4kSSr49piYoSatEudbBNCoXy/Olst2DPbuv9DvGV0VgrOfUuRamfHglKEC6fTPxHL9XO2Y2DygvVSp5ea0NgiS40svS/d9s26lXskYDkFZclHXnmIyYoZ/0c14HbElE4N8gisEGMx1yQOnDl+ladX4xQtnNU+qn23fJwS43Sa+7UD86IxxPF42xlk8CcStadfo0s3STI7kH7ORIvoCXkmWMAOlpAozUceiSUodaLHXLZtDiRzgCjH0ybsCNdyQ== 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 AM9PR04MB8858.eurprd04.prod.outlook.com (2603:10a6:20b:409::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Wed, 22 Nov 2023 11:34:12 +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:34:12 +0000 From: Geliang Tang To: mptcp@lists.linux.dev Cc: Geliang Tang Subject: [PATCH mptcp-next v4 26/33] selftests: mptcp: simult flows: define missing vars Date: Wed, 22 Nov 2023 19:31:14 +0800 Message-Id: <3746b16095842327de5f84273f70a08c4f25c002.1700652422.git.geliang.tang@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: References: X-ClientProxiedBy: SG2PR06CA0252.apcprd06.prod.outlook.com (2603:1096:4:ac::36) 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_|AM9PR04MB8858:EE_ X-MS-Office365-Filtering-Correlation-Id: 772b3973-d903-401d-48ed-08dbeb4ef35e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A9280O8oF8UCep9R5v2xQURxpsy5Kpf5UQxJCz5YXKa3z8ug3AkS6KTe7IPGuwNEcvr8zCZ8bgcx6HzH3i4+QR7G33RC9wJBqMjzjVZa+AGjEIpQW2SuS1E/0gXOAaKca5qCQaQ/tSUH5n07AFwTiTXFiVH61KiCRC3FIQWuP00QIlhbaswxWzIw5jWwKgWJTdWmi+Yw0p+FTNEecGVWjW8TOxtvnKkcaoT1paHyuQ0PDdgjGhgo5D43CzpoyM0E/45MeRNYuxBakpM6tUP5+m4LNGqjlu6BeBBYW+xRD9Ij5WytyVuHnBTFI21SkCDa5JmIycx0AQhc4aoLJ3f0JIo7VIRC5Ymhfgs7CVoFEkrWSQVeFzuZ7bqoR7ubKQfAF+b5lrjixTIosifJoJGm9R6MWrji9vl6peyWQA0FtGtXK9uoruBQs6kEE0ltmEIhY7RZ+TuQZMRTFVwAmRlO09t48a/rHKMGLSIrwn+oxQXsS+46BHG6vauReoHJwXbFzDYKgVkXLTGjYQJE81v2llB5kOwyf8IEYQ+XuQcvi/zhalTGUHBYudHYFAO4YyZa9xa1y1JKc4+X0N5IHEZ8AZHLvfOXf5gEtNYKqLaOzPw= 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)(376002)(136003)(39860400002)(396003)(346002)(366004)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(5660300002)(36756003)(8936002)(44832011)(8676002)(478600001)(6486002)(86362001)(4326008)(6512007)(316002)(6916009)(66476007)(66946007)(66556008)(4744005)(41300700001)(38100700002)(2906002)(26005)(2616005)(107886003)(6506007)(13296009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: p1EBr4fJjY1WuXIaBnPXHaMsMJCizPpOOnJ3Mt0XrYbcimld73TG+J11V3P60NKU1UOOQIdhBBurMlVwr/VC0+GCXVTccs2Pm8pmVeiREIhmZYdOhUePqQgvO3nMPE6gc0Upg1y1E95OHbmuA0IJ5qivcazLcDDB2nTm4NWhpb1SlggYj8UHHpK7sQ//vare1W3JGv5Y2WjmRm+5Yp2m3DZ2JAYGj1BTInBEKkF5fRzUwuTJgPAU+uSlb9VJNEEHhrtG0gDLI+GKolVbWpZhtWWv6o3/1UIqgUP9fUDWB8OPcVPxCYlbPJ2bhaqha3ImcrBNG+H74CkvDj/2VvT5rNv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c5KeO3c19AMdBX2BgXB6e+c82DvwxUGfdmrLWPO+aFvYlLKxYLXvS02w5YYtsG6QWGxQ0ZXpiZlhsEfFK9Ozpy+ztkha9cmVCOOoRBxOH1g16apiHQ2LGp4NMyHMSUFmV5/7YG3HAJ8MZiKQTauSmHn58bdJyolblmQIfCU/CYctTJKF5Icvv7LcQ6SJA7fn/oghI06ZcpTDKpqsoc7+1Uw== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 772b3973-d903-401d-48ed-08dbeb4ef35e 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:34:12.7184 (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: Ji40Sb0Fr42w/YgWK0kekNifnVFFtKjJIwxXsPyZqQ+VrzIYdx/OPM5fV+zIH9DgvZ03z5G3cMsBK8FLm1FNyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8858 The variables 'large', 'small', 'sout', 'cout', 'capout' and 'size' are used in multiple functions, so they should be defined as global variables. This patch redefines them at the beginning of simult_flows.sh. Signed-off-by: Geliang Tang --- tools/testing/selftests/net/mptcp/simult_flows.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/testing/selftests/net/mptcp/simult_flows.sh index e1f4ddf04bc3..a85c9ff21e54 100755 --- a/tools/testing/selftests/net/mptcp/simult_flows.sh +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh @@ -10,6 +10,12 @@ timeout_poll=30 timeout_test=$((timeout_poll * 2 + 1)) bail=0 slack=50 +large="" +small="" +sout="" +cout="" +capout="" +size=0 usage() { echo "Usage: $0 [ -b ] [ -c ] [ -d ]"