From patchwork Mon Aug 6 06:54:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 10556535 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1520F15A6 for ; Mon, 6 Aug 2018 06:55:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1FD029193 for ; Mon, 6 Aug 2018 06:55:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E33D9291A5; Mon, 6 Aug 2018 06:55:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D56CC29193 for ; Mon, 6 Aug 2018 06:55:43 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41kT1n3NWpzF3HW for ; Mon, 6 Aug 2018 16:55:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="uq07oodS"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=40.107.3.47; helo=eur03-am5-obe.outbound.protection.outlook.com; envelope-from=idosch@mellanox.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="uq07oodS"; dkim-atps=neutral Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30047.outbound.protection.outlook.com [40.107.3.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41kT1d2jK7zF3HJ for ; Mon, 6 Aug 2018 16:55:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uPSkpEDO+GD+E/KkjsrFUUcUjPeFzmdN6dUnD5yG838=; b=uq07oodS+/8rQSIQZrDodInGP4PD2UAcdT5bWMCXx7Hvgs3XVl3mdiBbAEkd2qR32464UEgYAixhxzzOE2Ilkw4HxmWbYM6Bm4WYJgkldcfe153qhE6xRMsgD00Di5Y5+FIHtgOFiS+cOYol4cQRMx3J6pGbA+l+CBPrvJ76IxE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by AM6PR05MB4982.eurprd05.prod.outlook.com (2603:10a6:20b:10::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.18; Mon, 6 Aug 2018 06:55:23 +0000 From: Ido Schimmel To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw] selftests: forwarding: Make ping timeout configurable Date: Mon, 6 Aug 2018 09:54:55 +0300 Message-Id: <20180806065455.31582-1-idosch@mellanox.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1PR0202CA0021.eurprd02.prod.outlook.com (2603:10a6:803:14::34) To AM6PR05MB4982.eurprd05.prod.outlook.com (2603:10a6:20b:10::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95a58589-e22f-4d93-cba1-08d5fb69958d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4982; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4982; 3:Q88P+gLxvD25V9j7wkcfRTn8w/ISNbJ5NkzmKdqWKsJ2k+pppPjwooXErjlBL4MFQVvkvyJPsv3HzPp0tExAPKu3f1uV3JxtLs3YfrqVZaLhhUbkHE79lpBUjurCINTRVI0SiyxKVXMyPkBB2DzH6cL0ByUX40w0OfsJaCQ4ne3LIuJygc5MGiYabPwxRH2/uKbHl/MbtiRu0JSqLNQ9kPwi6zrHr7ut3y68CtUJaQ0pJKlmuA7k2a09YOKNKa1W; 25:3gXJmXcVugmq5Gwu2iS1T9DzEza2b+dSleGLPQlH1pu0ZPTmXzeGFd1cxRyKv9z/3T5+rj5f+UT9bRUtPwCidMyUwOOPgrAnrTi+HEgnqHnjpx1G3+Ej8YfHfWeGLtEAg8b/SsvFgpo08bd9HHBQoE8xR/fvMkJxYM3wUmHVcXCOSAtNUEfcaPY3Y/mjohFXgCNNDFWi/dMfARBsp/OcWbt2rRh1t48qHCwrfs9eW5+uetT7GzsXfM3RYjiHpTT9Fc5VM+OBCJeAMRyjG16C443SW52trJo+9aBjwT/7QhAoUw1HPlj1jtCXJRgxpuRdZ+C8RqSZvxEW1YSk1xRTlA==; 31:JkjBTcxBjnWyOMv3ws0f3wGlj3m0w2K7kuKRONvpPFa0R7YpULe+FeI/5AGzXhmcbl891asl8eG+oqMInY+f2WmExtmQojh0J9VzKODLGuSXh2kks3/KTX3gmTXo5vc/R0Cm2mQJy2Yheu4UEzaQYriVOFIzJSJcoaKvc0YollmPdj5zAhRBu9hZOB4cTJq3cZcqZSr2No0wSrZdEk+A8TRrh4Sehk4/AApKHlCmtO4= X-MS-TrafficTypeDiagnostic: AM6PR05MB4982: X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4982; 20:3Lk7lN69dSIPOu29GgRkg50lm9ZKHk4kCOzkzO1xf1oYTdlMEh+XpPqlFY6yVe0HZ2c4xMLRt572LSacWBQQ3q3mNPDEYD/tVVi5Cra67diTSeL+r3OZCB24u661dvMcfzqbwpLY5HfLzjsLU/NDq4th6c3MuoqHJ8KBeqBbb8vBnKoik6FxdOXx0B7srNE9PjbMrY7FMpBwZ6bpvQovnVJwkt02+wp/Y7bXxkIMvJodycFgUQn0SfS+WY5QCMNaO/08p9N0zsFavYSc7j2WnKPs8ShxhW1LLpyH553mvyLoG/kjZmOYBPa7OXGAuMvvvfvs99WQRoWHK8buvdzaLbOPNErvaGdlT1v2WmNej1ah+Ri3fA8Wy1S4A58307hnfoBOW3rqHkzdZBVSVnei+Fgtod5+Eqa90fdhy3GZwg3fWNowDMaiIULRfGzbPOg9DdWrCjBuosyo4dpYvw8fqolMkguGBz0jSVxt3u+8Be+ewSb6l9PjNLweXedgBJHF; 4:4h+YLIRoPMAYaj3Uz6/2TWlHLfW+dop4D0U205B9TZysQp7aISuOPna2sZrSAZaDu9RKnWNbPnivplDE/FqL32V4ikJ6mFrJyiDctkLP+myxoF9GKg29c2B4P/75p58C5ZVvGV4tQS/QAsNJexXVmB4r8tHXCR9Xx3HIpEO2wN985gYcayPWVDJhc3L/SubhIHUERHPG0x4KxR8d160Y2BBydD9t2IzYVFD8pbgIiDa7l53+PRzDZiiqy5uiHWg42dfaJmuwXd40bUZy27q3nQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM6PR05MB4982; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4982; X-Forefront-PRVS: 07562C22DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(136003)(366004)(39860400002)(189003)(199004)(8676002)(476003)(81166006)(34206002)(4326008)(37006003)(107886003)(26005)(2906002)(51416003)(81156014)(66066001)(52116002)(53936002)(2351001)(6512007)(305945005)(16586007)(48376002)(36756003)(50466002)(5660300001)(50226002)(25786009)(16526019)(956004)(2616005)(486006)(316002)(386003)(6506007)(7736002)(6486002)(2361001)(478600001)(47776003)(86362001)(105586002)(106356001)(8936002)(6636002)(97736004)(6116002)(68736007)(6666003)(53416004)(1076002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4982; H:splinter.mtl.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4982; 23:FQS7whmLRCvENbLW+NWcdpPb0lvJGeLjfcte//zn/?= vzMUrQ/zHkwXqCpBBF8iwBSNyYndxscee5oQo86PPR036Wo3JveL45Uk41aJWzxdC6vDOYxUad6Dgixj3AtX0Vblcu680as4bZT/N2CQKK7daKQKDTTBU8lbhOZoYVmSPqbg7Xp8QIEBrt2ewW56fcrfNzTj21pdxN1CTX/TDX+zZbPPydozkdom3Akjavbnuck+sAAEwVnzoRmaCPV4wGj4PQWI+kJ/ALsg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BAq/pcRRKPOvzLgIWIWIz8Kdkkn9KlQvSCcdTavf4aLgGYLOblN2uEX9PrkEVINjaMhjvRZrW1sdEq0241ieThByxfooKnvW/YsV81o6BO4MUc5NfkFA49/ey6eSp+Zy4iUFRp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2018 06:55:23.7495 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95a58589-e22f-4d93-cba1-08d5fb69958d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4982 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: mlxsw driver development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP The current timeout (2 seconds) proved to be too low for some (emulated) systems where we run the tests. Make the timeout configurable and default to 5 seconds. Signed-off-by: Ido Schimmel --- This was requested by SimX team --- .../testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh | 2 +- .../testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh | 2 +- .../selftests/net/forwarding/forwarding.config.sample | 3 +++ tools/testing/selftests/net/forwarding/lib.sh | 7 +++++-- tools/testing/selftests/net/forwarding/mirror_lib.sh | 3 ++- tools/testing/selftests/net/forwarding/router_broadcast.sh | 3 ++- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh index 1ca631d5aaba..111baedc5742 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh @@ -150,7 +150,7 @@ dscp_ping_test() ip vrf exec $vrf_name \ ${PING} -Q $dscp_10 ${sip:+-I $sip} $dip \ - -c 10 -i 0.1 -w 2 &> /dev/null + -c 10 -i 0.1 -w $PING_TIMEOUT &> /dev/null local -A t1s eval "t1s=($(dscp_fetch_stats $dev_10 10) diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh index 281d90766e12..6fa717ef91ef 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh @@ -171,7 +171,7 @@ dscp_ping_test() ip vrf exec $vrf_name \ ${PING} -Q $dscp ${sip:+-I $sip} $dip \ - -c 10 -i 0.1 -w 2 &> /dev/null + -c 10 -i 0.1 -w $PING_TIMEOUT &> /dev/null eval "local -A dev1_t1s=($(dscp_fetch_stats $dev1 0))" eval "local -A dev2_t1s=($(dscp_fetch_stats $dev2 0))" diff --git a/tools/testing/selftests/net/forwarding/forwarding.config.sample b/tools/testing/selftests/net/forwarding/forwarding.config.sample index e819d049d9ce..e2adb533c8fc 100644 --- a/tools/testing/selftests/net/forwarding/forwarding.config.sample +++ b/tools/testing/selftests/net/forwarding/forwarding.config.sample @@ -33,3 +33,6 @@ PAUSE_ON_CLEANUP=no NETIF_TYPE=veth # Whether to create virtual interfaces (veth) or not NETIF_CREATE=yes +# Timeout (in seconds) before ping exits regardless of how many packets have +# been sent or received +PING_TIMEOUT=5 diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index ca53b539aa2d..e2a38f63ebab 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -15,6 +15,7 @@ PAUSE_ON_FAIL=${PAUSE_ON_FAIL:=no} PAUSE_ON_CLEANUP=${PAUSE_ON_CLEANUP:=no} NETIF_TYPE=${NETIF_TYPE:=veth} NETIF_CREATE=${NETIF_CREATE:=yes} +PING_TIMEOUT=${PING_TIMEOUT:=5} relative_path="${BASH_SOURCE%/*}" if [[ "$relative_path" == "${BASH_SOURCE}" ]]; then @@ -768,7 +769,8 @@ ping_do() local vrf_name vrf_name=$(master_name_get $if_name) - ip vrf exec $vrf_name $PING $dip -c 10 -i 0.1 -w 2 &> /dev/null + ip vrf exec $vrf_name \ + $PING $dip -c 10 -i 0.1 -w $PING_TIMEOUT &> /dev/null } ping_test() @@ -787,7 +789,8 @@ ping6_do() local vrf_name vrf_name=$(master_name_get $if_name) - ip vrf exec $vrf_name $PING6 $dip -c 10 -i 0.1 -w 2 &> /dev/null + ip vrf exec $vrf_name \ + $PING6 $dip -c 10 -i 0.1 -w $PING_TIMEOUT &> /dev/null } ping6_test() diff --git a/tools/testing/selftests/net/forwarding/mirror_lib.sh b/tools/testing/selftests/net/forwarding/mirror_lib.sh index 07991e1025c7..a1c0389eb049 100644 --- a/tools/testing/selftests/net/forwarding/mirror_lib.sh +++ b/tools/testing/selftests/net/forwarding/mirror_lib.sh @@ -31,7 +31,8 @@ mirror_test() local t0=$(tc_rule_stats_get $dev $pref) ip vrf exec $vrf_name \ - ${PING} ${sip:+-I $sip} $dip -c 10 -i 0.1 -w 2 &> /dev/null + ${PING} ${sip:+-I $sip} $dip -c 10 -i 0.1 -w $PING_TIMEOUT \ + &> /dev/null local t1=$(tc_rule_stats_get $dev $pref) local delta=$((t1 - t0)) # Tolerate a couple stray extra packets. diff --git a/tools/testing/selftests/net/forwarding/router_broadcast.sh b/tools/testing/selftests/net/forwarding/router_broadcast.sh index 7bd2ebb6e9de..9a678ece32b4 100755 --- a/tools/testing/selftests/net/forwarding/router_broadcast.sh +++ b/tools/testing/selftests/net/forwarding/router_broadcast.sh @@ -170,7 +170,8 @@ ping_test_from() log_info "ping $dip, expected reply from $from" ip vrf exec $(master_name_get $oif) \ - $PING -I $oif $dip -c 10 -i 0.1 -w 2 -b 2>&1 | grep $from &> /dev/null + $PING -I $oif $dip -c 10 -i 0.1 -w $PING_TIMEOUT -b 2>&1 \ + | grep $from &> /dev/null check_err_fail $fail $? }