Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2122257ioo; Mon, 23 May 2022 10:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN0tao/BHdWAtUhgFVMlcVzUDVPTa5SZm8CP9ha4Ovno5osqT+/WZzZGf5ujNbFlafqe68 X-Received: by 2002:a17:90b:17c6:b0:1e0:28bf:d429 with SMTP id me6-20020a17090b17c600b001e028bfd429mr66392pjb.239.1653327130073; Mon, 23 May 2022 10:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653327130; cv=none; d=google.com; s=arc-20160816; b=TpIgodzeiBYt/rkrwna5z2KqtJxELZov/NORHZZjnhH+bjuF5HOLJhMKRPbzUaasfB FiFgtgSRlPRHSB0kJ94SUjgt2K9z2FNnpTHenMvIgmcyaEE5Bl1E8XECmqmvOxU+ssIQ jJtzauN3Ss8mZm1xVrUKCtPttHt5FgWUgm9ZPZMe+Uj8HfBtwXrcfx/piELai8qt4H11 0sp7UU6vfiw3zBmnmrv5ipc6cN4+bhOZNRWqkAQ9OFghevTuDeLN8LcMxlwvhWCCla3K IKGCiu8O06PujZy1lQ6FGpOjcvcPHRWTv5+Iz990RMo6BbEy5M2LqjfYb3X1QYWJyGgo ig5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wovs8Y+dcbP1BI1Wb3oR8t2Xrn6vZA6m2TC5SnD54Sg=; b=XoaKtd/qIJFcRXvcDWdFsDYugv34J/dLfcyTeRH4p4ZL4ITRvm7mkKB70raoVdR642 PKLcGHv+khCk9Xg9SVI2n8HU6UKYTmv2JW/J1SUdlbDdFdyOHAN6QxnewB+71KRxNXYv CSBGDRN/Rh0NAuD/WrKDxigZMzJt8wEJaLzNCcmFyBEz/H8QRrC9l/maY82xLD86Ta5K V2rs5sTWmxsXwOfeKo+lEd1AgqEAgoVJ4k02WNXmUS2ajKm+npadORjMI7hWPyPTvepf g0U2amYPTdUZuWeOx+slkgRSmjaqYJUfjKe37yBVXmyeKMS3GMbctCNSj0nxF1dNL1Io F+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="aKZJIDl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f10-20020a170902ce8a00b0015f45278c31si12216241plg.233.2022.05.23.10.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="aKZJIDl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA5959157A; Mon, 23 May 2022 10:30:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240751AbiEWR0C (ORCPT + 99 others); Mon, 23 May 2022 13:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240570AbiEWRQ3 (ORCPT ); Mon, 23 May 2022 13:16:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC1A72212; Mon, 23 May 2022 10:15:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 60EB7B8121F; Mon, 23 May 2022 17:15:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAF17C385A9; Mon, 23 May 2022 17:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326105; bh=Em6VDN095tlB4mBZm4+ai7DDqRwvok4lEQCa+cyHyY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aKZJIDl/FDDl1+Q5i0YE83a1xutycno35+JgxUYapdCm7nrVt4N+qj3uIEF4nfTpe 2QKMlivYPbwHFNugogwQmS4sg0ggYO5DAuF469c2whdCZOezYb0IUGPgn1Vp2dRfmD MyG9ffayoGu1gXS/JH+RByknUpyOMqce87txGeYA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dichtel , David Ahern , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 55/68] selftests: add ping test with ping_group_range tuned Date: Mon, 23 May 2022 19:05:22 +0200 Message-Id: <20220523165811.579043620@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Dichtel [ Upstream commit e71b7f1f44d3d88c677769c85ef0171caf9fc89f ] The 'ping' utility is able to manage two kind of sockets (raw or icmp), depending on the sysctl ping_group_range. By default, ping_group_range is set to '1 0', which forces ping to use an ip raw socket. Let's replay the ping tests by allowing 'ping' to use the ip icmp socket. After the previous patch, ipv4 tests results are the same with both kinds of socket. For ipv6, there are a lot a new failures (the previous patch fixes only two cases). Signed-off-by: Nicolas Dichtel Reviewed-by: David Ahern Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- tools/testing/selftests/net/fcnal-test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh index 157822331954..d2ac09b35dcf 100755 --- a/tools/testing/selftests/net/fcnal-test.sh +++ b/tools/testing/selftests/net/fcnal-test.sh @@ -757,10 +757,16 @@ ipv4_ping() setup set_sysctl net.ipv4.raw_l3mdev_accept=1 2>/dev/null ipv4_ping_novrf + setup + set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null + ipv4_ping_novrf log_subsection "With VRF" setup "yes" ipv4_ping_vrf + setup "yes" + set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null + ipv4_ping_vrf } ################################################################################ @@ -2005,10 +2011,16 @@ ipv6_ping() log_subsection "No VRF" setup ipv6_ping_novrf + setup + set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null + ipv6_ping_novrf log_subsection "With VRF" setup "yes" ipv6_ping_vrf + setup "yes" + set_sysctl net.ipv4.ping_group_range='0 2147483647' 2>/dev/null + ipv6_ping_vrf } ################################################################################ -- 2.35.1