Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2406292lqp; Sun, 24 Mar 2024 18:13:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgoMNQ53V1tZrzTvQNpHQtgqx5imgPF+v6A510NfMbizAuz+7nZFcFB2GSyAg1xprsNt/zxh0pZdN+ivPG9zoN0N83aieCOkYCHnmuJA== X-Google-Smtp-Source: AGHT+IFcy2uS83jHUwIK1fBxqitMLvVRVHYD2Y9WdpM7sPPKF/cDb/eQIYqN3WhKDjNdHLYC5OCL X-Received: by 2002:a17:906:d0c8:b0:a46:a662:e567 with SMTP id bq8-20020a170906d0c800b00a46a662e567mr3571898ejb.3.1711329181458; Sun, 24 Mar 2024 18:13:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711329181; cv=pass; d=google.com; s=arc-20160816; b=SP6CV+8TWyRhgwrtPxHZlK+KmxRmm/f7jklUsMWSVpeB7tkCzRmUJniBQ2tXAr5PDX CFf1YoLOc4eCqnX0TKsgOCdpdPzD64xzZHYMPdNLYyP9yrzQbr80BF3jGSz0u/+tUtJp cjOSKj9PA/aTR0dZU/vsSzVAvF1jisansebHmnmimA//4xLhbelOzJwtjPbi2doS0fAs +i4NEI6YWW1aZELnufyMKIWMfTj7NSxr/oK56obj27lU1l1OJIZU4qC2F+WZqwtZM1e7 QmlZKHnkuLJ70zc3+r80+DFgG5XaD0GQdDJh45WnRgdisYarMXGIn6tGYz7GmBl9jMgh ffJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RxBObw6mb102DF/goBCtec9Q5X1E1lKT7gdvIVuNIE0=; fh=rGvoPh8l92VI7Oo/MIf19dsVAg+EQRXLAf1+j0YQgZI=; b=AGTUuPAm3uCNdijpWsB0uhFoW7XshnUAONE/M9Xza4vYD3aHktZAnk6jpd6tCW+oB+ lQPHPMRQNOWFlF5rYSu7gTQUGHWzmksEl9ryKuDicJj8z41cnazVCLlv37Fcceuao7OF HS/RX6DX4v+EQUEnhMU6aEhxZ1axHQO55WODSz33a83PqrpWBz4sK6wgjNMY62OYHeXF r0DSSg1GJcb0PnLxHqtsrUKdrLCHr0z4TgBuvkzYiVviLgBSl2uUWKl2nIiuGekUQbaK FBP9j/a8vgZ+ANCi4IMlowIi9ca54s5BuRzsMiT8kJykjWQSBGQVrUz6xF5nW+uO4QsF 6U2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VhLgGz2Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w2-20020a1709060a0200b00a4635b598efsi2126821ejf.130.2024.03.24.18.13.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 18:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VhLgGz2Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113601-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3347F1F23721 for ; Mon, 25 Mar 2024 01:13:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B4276025; Sun, 24 Mar 2024 22:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VhLgGz2Q" 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 2DB8A75815; Sun, 24 Mar 2024 22:46:44 +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=1711320404; cv=none; b=jCU59i6khvNSqtrIM4a+wTb1nlI4ikRG5YqoQOEKPX6r9XLsq/FLnCB+CvUSGst+207iOVE3swS40x6IrnQvRdhOsOcV/lMzkv5eMLYzFnOIgPL/j6sPhnboWlWkzwt8WkJTo9JAEfJog2QwsZd9weD9oeq0jQyQkJ7oDN1R7ZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320404; c=relaxed/simple; bh=90Uqm9QF4FUxa1GZXRDF0mBH1f1Bbm0BPJYWcT65jps=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jj8+zWMgdkJFSP07ezIVurxvWdF0gz/QJDk0Hnie5BtYY2tIaXa3XNPJgsRYhgCtDoTclrQJ68ykrSonKWNVJ3jYyhbzUjac6rFH0jCl/IjA5mePJw/0L0Y++x7t0zdj25jJoiBGVo2cMUaZnQ5xGLJnov7189D6JX6Qr858Aow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VhLgGz2Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3439BC433C7; Sun, 24 Mar 2024 22:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320404; bh=90Uqm9QF4FUxa1GZXRDF0mBH1f1Bbm0BPJYWcT65jps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VhLgGz2QVw2ltxWQuQ7/P/naoBhX+/uLq+aEwcklIWWLKeBwMtN1USJO0PafE3Cgm JcwgtyClzO1Lp+cup/mSFOxgseRVAGTe7vScztq37b1hyXAsQHuca+0jDMHZ+kKvZA Vgh3nPDVFZ1WP4BzTthaQ7kR05rH6uBEfPa47a2Erh1QTXUGKRGAMGtxE5Kvy5Kurs sxXFkCy5JeNROuPtKyiKv1D77nZQYY5y/m7TOIZWMFgEs/lg+26/r5DYYnJGbV4frD Ynav86vVxNybRuUONQXD5JUgGwcXREgnh0wfeE4kxK4AdqhiWskUxrCX5T9GNTP+VQ DkOBOdVHAXOEA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ido Schimmel , Paolo Abeni , Hangbin Liu , Jiri Pirko , Sasha Levin Subject: [PATCH 6.8 710/715] selftests: forwarding: Fix ping failure due to short timeout Date: Sun, 24 Mar 2024 18:34:49 -0400 Message-ID: <20240324223455.1342824-711-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Ido Schimmel [ Upstream commit e4137851d4863a9bdc6aabc613bcb46c06d91e64 ] The tests send 100 pings in 0.1 second intervals and force a timeout of 11 seconds, which is borderline (especially on debug kernels), resulting in random failures in netdev CI [1]. Fix by increasing the timeout to 20 seconds. It should not prolong the test unless something is wrong, in which case the test will rightfully fail. [1] # selftests: net/forwarding: vxlan_bridge_1d_port_8472_ipv6.sh # INFO: Running tests with UDP port 8472 # TEST: ping: local->local [ OK ] # TEST: ping: local->remote 1 [FAIL] # Ping failed [...] Fixes: b07e9957f220 ("selftests: forwarding: Add VxLAN tests with a VLAN-unaware bridge for IPv6") Fixes: 728b35259e28 ("selftests: forwarding: Add VxLAN tests with a VLAN-aware bridge for IPv6") Reported-by: Paolo Abeni Closes: https://lore.kernel.org/netdev/24a7051fdcd1f156c3704bca39e4b3c41dfc7c4b.camel@redhat.com/ Signed-off-by: Ido Schimmel Reviewed-by: Hangbin Liu Reviewed-by: Jiri Pirko Link: https://lore.kernel.org/r/20240320065717.4145325-1-idosch@nvidia.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- .../testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh | 4 ++-- .../testing/selftests/net/forwarding/vxlan_bridge_1q_ipv6.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh index ac97f07e5ce82..bd3f7d492af2b 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh @@ -354,7 +354,7 @@ __ping_ipv4() # Send 100 packets and verify that at least 100 packets hit the rule, # to overcome ARP noise. - PING_COUNT=100 PING_TIMEOUT=11 ping_do $dev $dst_ip + PING_COUNT=100 PING_TIMEOUT=20 ping_do $dev $dst_ip check_err $? "Ping failed" tc_check_at_least_x_packets "dev $rp1 egress" 101 10 100 @@ -410,7 +410,7 @@ __ping_ipv6() # Send 100 packets and verify that at least 100 packets hit the rule, # to overcome neighbor discovery noise. - PING_COUNT=100 PING_TIMEOUT=11 ping6_do $dev $dst_ip + PING_COUNT=100 PING_TIMEOUT=20 ping6_do $dev $dst_ip check_err $? "Ping failed" tc_check_at_least_x_packets "dev $rp1 egress" 101 100 diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1q_ipv6.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1q_ipv6.sh index d880df89bc8bd..e83fde79f40d0 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1q_ipv6.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1q_ipv6.sh @@ -457,7 +457,7 @@ __ping_ipv4() # Send 100 packets and verify that at least 100 packets hit the rule, # to overcome ARP noise. - PING_COUNT=100 PING_TIMEOUT=11 ping_do $dev $dst_ip + PING_COUNT=100 PING_TIMEOUT=20 ping_do $dev $dst_ip check_err $? "Ping failed" tc_check_at_least_x_packets "dev $rp1 egress" 101 10 100 @@ -522,7 +522,7 @@ __ping_ipv6() # Send 100 packets and verify that at least 100 packets hit the rule, # to overcome neighbor discovery noise. - PING_COUNT=100 PING_TIMEOUT=11 ping6_do $dev $dst_ip + PING_COUNT=100 PING_TIMEOUT=20 ping6_do $dev $dst_ip check_err $? "Ping failed" tc_check_at_least_x_packets "dev $rp1 egress" 101 100 -- 2.43.0