Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3674070pxv; Mon, 26 Jul 2021 09:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRc3NPEU8Ioy3lkgaCDYjbe+2yntQUp33MlVdOV7kZ8wsUupTbeZAi8eS1JNqpeaImXZuE X-Received: by 2002:a02:7093:: with SMTP id f141mr17050876jac.24.1627315771992; Mon, 26 Jul 2021 09:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315771; cv=none; d=google.com; s=arc-20160816; b=e7wZDr/Eil+uOix3t7sbQc26OATX7Oo8CaJE4sAYlqb8Y8FLjUWUlCOgB2bNy9eX1o AVsfqE6bnQQjjT9Sm3AMogz/YdSHUMbOxxas/LD1whB7MojXyQkNLfQiYb3q2VlrU5j8 ZcGBJ0nynqWBPPGn7SlVZTcH5Ut7NNgcevlQGBf5nAX8U+codCFldcXF7R+DfFQ6zEJ/ zZTyQQr2mjvBBbt1YiWKEZ/kYMAbxteL2/Xt/JVS1LjtYqXcuePlyfQOcyQoffLom30+ cyZf++cLFqsM5JbujFbtXMOvyf+3rHXwiy0RVgCPyrDb1lltrEjysIoIFkgZJK15lUWI uu4w== 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=YQBHMhAXBhC9pFOMSZJeOD7+tsxTrwWVX6DACPs9+98=; b=lWipTG79RZ6kN6kl0LGmhrk0egEIS3MJjXy9JxIDYiKimpONDq4ILxvleDfG6xeoyk ma8GxMa2veqCp/9gk+sGpr3aMcShXmr4S5l2LnTkpwGaH4X8WZ0y+L/hv0vJetsNptho +BDSIupdUCCoRFuEit6dMWGTWsXM7GKo76aYVQKDEIxuDrNzV1ZvMM/wMY0h59E0LT5o pewQXB/OgA1AEjomVYEoMasHLmYOWKFUaJ5VI0pJWuAsVcmYUYoBbN2szyeaD40i8wuc ho09Oy3ndeLkhDEAlgeLHRknRWqFFtNpImTzba5OrtUguokJhmX2LNVF5mtJqk5OzLaT Se4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VpVOLCTx; 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 u15si331317iot.89.2021.07.26.09.09.20; Mon, 26 Jul 2021 09:09:31 -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=VpVOLCTx; 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 S237787AbhGZPYM (ORCPT + 99 others); Mon, 26 Jul 2021 11:24:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:55330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237427AbhGZPPp (ORCPT ); Mon, 26 Jul 2021 11:15:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C2416103B; Mon, 26 Jul 2021 15:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314909; bh=vDLIhy+N5aPbnzzu9n74JD7Wlx3WnNTbPANWOz/MYX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VpVOLCTxCCok1ctgTgA9vW+qWWhZAK2Cg25BGw3bjuajAOoiRYpGCRPJmDKPH1sg2 U1iHNYEIDRqIn3jZZ2lfDwK9zX0cFtpUGTyeT3o5rvftUK+VGPk1qmkSTHrvuKL5yP WOrHl0gePxDJhmX+YVo1Ht7uGkNfQ4rMBNfU06Nw= 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 016/108] selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect Date: Mon, 26 Jul 2021 17:38:17 +0200 Message-Id: <20210726153832.215580117@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 0e02bf5de46ae30074a2e1a8194a422a84482a1a ] After redirecting, it's already a new path. So the old PMTU info should be cleared. The IPv6 test "mtu exception plus redirect" should only has redirect info without old PMTU. The IPv4 test can not be changed because of legacy. 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/icmp_redirect.sh b/tools/testing/selftests/net/icmp_redirect.sh index bfcabee50155..104a7a5f13b1 100755 --- a/tools/testing/selftests/net/icmp_redirect.sh +++ b/tools/testing/selftests/net/icmp_redirect.sh @@ -309,9 +309,10 @@ check_exception() fi log_test $? 0 "IPv4: ${desc}" - if [ "$with_redirect" = "yes" ]; then + # No PMTU info for test "redirect" and "mtu exception plus redirect" + if [ "$with_redirect" = "yes" ] && [ "$desc" != "redirect exception plus mtu" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ - grep -q "${H2_N2_IP6} .*via ${R2_LLADDR} dev br0.*${mtu}" + grep -v "mtu" | grep -q "${H2_N2_IP6} .*via ${R2_LLADDR} dev br0" elif [ -n "${mtu}" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ grep -q "${mtu}" -- 2.30.2