Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3675932pxv; Mon, 26 Jul 2021 09:11:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv7juuNrhse9iYOMpX/vInn8Dn9qNhyB/RJLeHIJ7psZB1Dw+XfMe7tcrKePRV7Dbf1K5S X-Received: by 2002:a17:906:9fc1:: with SMTP id hj1mr17286551ejc.103.1627315886954; Mon, 26 Jul 2021 09:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315886; cv=none; d=google.com; s=arc-20160816; b=ewfEwCc7xhNjX/U1mvV0s+xMHUY406I7V6RYTuCABTznTu5jnCsuzTwvkH1lrAtd6w vzolk/nY2vbUkbEavlQgJgkoyBzusOudp3m/l7gMDaDdIU/UNv2pbmdLo6RbbCWsM1U+ KGL35ew3dlbmhWCT5eracTsSHrdcROWtZ7nD2rlcVXTF5IquuM1gCoqfDkPe0cDeUC9w eQ41+r/U1vcjYSK8PZCoTRBLyOaWay5PHeITdKWBQM7gKVIi2f3bdHz8UNYXjChstktm 3q1UGdqv4suj0mHpwdHGjALihvRQTTlvPGTmVK7hwNnumbCEmFF7W2cKCg8N65b8tO8m N3cw== 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=eeMgXDnmm+TkqCvTTbo6uGzPqfbH883EXviKw61V6d0=; b=rM76aagWohn9/TVT7TMpca20HPCG9NdjqxVtXq5pVHF/806xw94dYeIbMwqujsQ82m KC6IAkQAwY5+RG4cG1+P3hyrawrWUJ9t+DGud80fxmipuoM+FhdZIApKLJTtMPFPeAt8 K17s/9N0L8o4U5DnNwlRlxvcVmsYimKLDzj3RecSKD/DF2mr6gV+1a3kG0+lCp7hqcjS ivIXg/w59QPtvPNRmJAEPJccKa/R6aSHXykMzGJEZ2TPq4QoPiOrYOkjBefWy7+rLVDm Knn1kk1m5svI3ZcOWOZpA5iw6fiMMB+FbaqwKhmPhTyNEk70xZABsjhZBXNcwoSZ61k9 nkhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RanR7y1A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si267078ejj.75.2021.07.26.09.11.00; Mon, 26 Jul 2021 09:11:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RanR7y1A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232402AbhGZP2l (ORCPT + 99 others); Mon, 26 Jul 2021 11:28:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:54246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237409AbhGZPPo (ORCPT ); Mon, 26 Jul 2021 11:15:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E2F560F90; Mon, 26 Jul 2021 15:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314907; bh=y8gmZqop9BmTiw9GOQqxvDT1B86BHadDU+FgFb9RLPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RanR7y1AF/Q30p5knNaj7Gvu5qLQnraQpX7PjG0jwRsSkqyPjktzog5ILPuJ2g64e PRExwmnkLXdu1Q3nN4WUyt2Cp2UmQuIyJ2sOBeaDkRhqjsiZsraSQXOj0OwdzFy6DL 0FRsxDgITZwkAK/7J+sB9ejponsXwMCt34BNULxY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , David Ahern , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 015/108] selftests: icmp_redirect: remove from checking for IPv6 route get Date: Mon, 26 Jul 2021 17:38:16 +0200 Message-Id: <20210726153832.185013193@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hangbin Liu [ Upstream commit 24b671aad4eae423e1abf5b7f08d9a5235458b8d ] If the kernel doesn't enable option CONFIG_IPV6_SUBTREES, the RTA_SRC info will not be exported to userspace in rt6_fill_node(). And ip cmd will not print "from ::" to the route output. So remove this check. Fixes: ec8105352869 ("selftests: Add redirect tests") Signed-off-by: Hangbin Liu Reviewed-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/icmp_redirect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/icmp_redirect.sh b/tools/testing/selftests/net/icmp_redirect.sh index bf361f30d6ef..bfcabee50155 100755 --- a/tools/testing/selftests/net/icmp_redirect.sh +++ b/tools/testing/selftests/net/icmp_redirect.sh @@ -311,7 +311,7 @@ check_exception() if [ "$with_redirect" = "yes" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ - grep -q "${H2_N2_IP6} from :: via ${R2_LLADDR} dev br0.*${mtu}" + grep -q "${H2_N2_IP6} .*via ${R2_LLADDR} dev br0.*${mtu}" elif [ -n "${mtu}" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ grep -q "${mtu}" -- 2.30.2