Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp175100lqs; Mon, 4 Mar 2024 20:45:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeMEJg4Lh9HoPmo8b/0WdeJEXgXoFBDuohFzmxEOnRHAgGObkPxMlbeRR4CuXTxIsNdAn56gI9keK3BNAS5AKKo+dUavl2MmWUFuE6kg== X-Google-Smtp-Source: AGHT+IEmqg9KsUHB5rAJwSa7VrE6ydUiAs60cckWHHlRlUrrCnymU1QS+GNaE8wh/Pz83kPmWlNU X-Received: by 2002:a17:906:7f99:b0:a45:a450:ae4 with SMTP id f25-20020a1709067f9900b00a45a4500ae4mr602936ejr.13.1709613924693; Mon, 04 Mar 2024 20:45:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709613924; cv=pass; d=google.com; s=arc-20160816; b=f1bxzjuNEMQ6LsFlSUrpDyhCP5skRuKuBTyJ86fWUgtZajiZWEaNKtPiWVh+b59REZ J27qoOCI/zAiegfS6kYdFiuoZEd1kO/zsnxlB0ZwXp2rgGYdleK8iZ/j/TSLUSihBcW/ w7+2f+p1r8rcLjof0u3H58EaZBMzZ8+Y3FfuJom3OoxGGlqPkLb0z2TfN7O4D310g24l q28Yn4E88RtLD5/Vp+JtOXJ5fMniRtjd+DmvKsIN/UssCui81AduxVqeFK9qgo87JB8B u7l3+BU3Ykwg592dSvtIzXvq/KhRCtOAs818n/C8DT4+r2PkFIFWmkXTg+udHa13mNrf f6wQ== 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 :subject:cc:to:from:date:dkim-signature; bh=o5AhRyVpm0MHjgXv5WZrKN6oDlqFXFlzf715iNFGFMk=; fh=UDdCLZ4vOvB6wSyjVNKomR9wy1QDGoHNszJ25uz40LQ=; b=Z2akPj07rtWyCMnP6KCxcjGZc8NEk8otmCDBuoakONTKgzUtIFynE3fsDkf/ZxISVX mEmbMNisJYjcyrd4k4kfMq7KC7Bu521KWnIcD3+y+UzYlEZ/KQSSlbtbIAeIcds2HiuQ pcaAyYuTWHkYMclh1Rcv2Ei5eBgGNpbhhK5LuwFtfHD/76ObPwLFEo4FArGmPxtUX4h6 QqKTOOq5PE+xH72fQzh6aSzVnGgkX2GdWZ3iQJxvZ/dBL05weyXjhFv1sIbqo9P1h04A wwKpb/sydPUZIgGXWn2UgAzGuCROFJJGnSGfeCjV0u/xcHDqPw563JH5eS69+7+4Ctsh KJQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sfp68Q5A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91679-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 qw30-20020a1709066a1e00b00a432a9875c6si4742508ejc.598.2024.03.04.20.45.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 20:45:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91679-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=sfp68Q5A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91679-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 1E5061F21E85 for ; Tue, 5 Mar 2024 04:45:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5464943AB0; Tue, 5 Mar 2024 04:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sfp68Q5A" 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 79F863FB1B; Tue, 5 Mar 2024 04:45:13 +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=1709613913; cv=none; b=ISI6H+Gpo7o/1MimjD4dcHhTZNaGGtagh+JHdPfpoBKXX0BVOjBSpfYsJzSV1bOLBV/4lrt6fQ8anzcBEWr9+YB1Lb0Wf7h4BydQYCjh8J7S+59hm0iaGHECT28w2bC9UZ6ita5njuV7VzY4wiR2Ju9chI4xqGOlZ4pCaxi7Uqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709613913; c=relaxed/simple; bh=o5AhRyVpm0MHjgXv5WZrKN6oDlqFXFlzf715iNFGFMk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ebh+7qG6RGE71e6MZOYQiaZAxy/zRcHP0fkuqutJnmfk5nAd08RnnDUXWULAEXpQXfr17Kt9W7fABZqDYq7E85ZkaXopomF1VmmF0nMKSz3zX+ahNQfTWqL6ofBp0HapOx/DQT9TQK8qMWC1yDKvaJU5POdU/5xKfncy/dVzvfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sfp68Q5A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90EFCC433C7; Tue, 5 Mar 2024 04:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709613913; bh=o5AhRyVpm0MHjgXv5WZrKN6oDlqFXFlzf715iNFGFMk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sfp68Q5AsHeQUYjxLzagHtpHSCDQydC4GK3K+i5MH5d3uu4swLsI17BDeEzEFP1EJ w0n0b2aXUQMbemzIOgpVVvBtm4VLRZaJ5ME5Ca/0GYTCWXG7Aur14Qm2Ar8V/k2CNY vULh5lejGfjfYfPDCjAFQYO/uKY9uH6tqAMNsAP+rHUltbPCXIiukCBde+ekDUr8ie 4LH7vMPszeRg1xg1DLcK52aIueTfFArk4obMWv07XQCkaA9k6D6iUTa1++l7kVTVh/ Wt/50EAaMga9hxOzlyfQVVfcRXrZPJ1CumeHpGZmOKDAVNw9H4BkYoevYlRhHtEYcc kjA8arIT7bUIA== Date: Mon, 4 Mar 2024 20:45:11 -0800 From: Jakub Kicinski To: "Lena Wang (=?UTF-8?B?546L5aic?=)" Cc: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "jiri@resnulli.us" , "dsahern@kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "Shiming Cheng (=?UTF-8?B?5oiQ6K+X5piO?=)" Subject: Re: [PATCH net v4] ipv6: fib6_rules: flush route cache when rule is changed Message-ID: <20240304204511.2026a56b@kernel.org> In-Reply-To: <09f2ab1b7946339da5092e10aa216e07c579c60b.camel@mediatek.com> References: <09f2ab1b7946339da5092e10aa216e07c579c60b.camel@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 1 Mar 2024 14:39:46 +0000 Lena Wang (=E7=8E=8B=E5=A8=9C) wrote: > From: Shiming Cheng >=20 > When rule policy is changed, ipv6 socket cache is not refreshed. > The sock's skb still uses a outdated route cache and was sent to > a wrong interface. >=20 > To avoid this error we should update fib node's version when > rule is changed. Then skb's route will be reroute checked as > route cache version is already different with fib node version. > The route cache is refreshed to match the latest rule. Doesn't apply, please rebase on top of latest net/main.