Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2393166rbb; Tue, 27 Feb 2024 23:35:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlMsQz3BmgMPxVh/4RU0j7WaUWd152NQZq7b9+Eifrmm39C97rI8dcOdR53u4VTMiEcb5W6qMpou99QMAJoGVpFXA9a6HKLdLpJ2mG1w== X-Google-Smtp-Source: AGHT+IHOOm0BtjrytgnQPHSJuU69r7pY9VecMpR1emEqnGgquzG4fUJTyceSXJjVbt5BAkK5EPhd X-Received: by 2002:a05:622a:1a05:b0:42e:5ca9:2523 with SMTP id f5-20020a05622a1a0500b0042e5ca92523mr14916880qtb.14.1709105704478; Tue, 27 Feb 2024 23:35:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709105704; cv=pass; d=google.com; s=arc-20160816; b=ud7R3DIS0N3qNSivtL85wWmV2ouyY9nF8rzQwbzY3zSajy5sD60WGqVJnWsB/BS4jA q1WHTE9BkBNYV7f81q8uKK7Wyh2DLSdFGtdKphmCgaQ1c7j1tqx6M6Bw12Alt8irn3Cy nqD7eydRyKGRSw8XDA++8TYeaqC337B2eISExWWfIKV17BN5oOV12tafE8SDRKOXhEDd qa+gvd6XwF6SSLw+B/DdPqDmeMK4yWWybzHObAbsPZ0DCRSGqRpWRobUR0GUxhmhUaWE 9cew0kaDT+Td2aJA0BLj436Anbpy4biKgkdgT3t0rw2x8PX+nXnnFVFX4IehIAd6WQMF FHnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=mw9EtmhvUkRrnHcT5CV9FOjIX6HotnKYpHlnylx2y+g=; fh=UhQDK6nBngC31w8jX1kBwu1I3lYB73rF1kJ2i1SV0Q0=; b=V4CXfNECc3YGr2ztK7fmH7Luo1sbbBiUZ+uOHmeX0eqnxcm8aVqUHovNCdLPfk1zM4 nO116715s2cVDKjGj+HQJsYc3RmltTUVnr1AQEQziw9B+GjtERlPDjF8ZSASGBRgNcIe bRugPv5GYbdZBxJAhSLUpv0hsD1yi3Wmb5ft7IVVELXGWt8QF8CK84y5TP+p3sSs03AA +gmh+KNg9idpS3Bdco45/XBBU8759fnNv3E45V3bl8h8ILmn+z0XsIYgK0MAwFqVxDoK g9GCTg1Vn1hNInTQe3B5564eZYQ/dmvdEbi5MeXdNBBZSb+H5lEw/WdMAjJkYOR2LHsb xuPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YjT4dlO1; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-84615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jy13-20020a05622a818d00b0042e7cdc950csi7107241qtb.791.2024.02.27.23.35.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 23:35:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YjT4dlO1; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-84615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 313DD1C24C86 for ; Wed, 28 Feb 2024 07:35:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 491A925618; Wed, 28 Feb 2024 07:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YjT4dlO1" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 AE51625601 for ; Wed, 28 Feb 2024 07:34:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105697; cv=none; b=izGgIF66ezYnVKxX0+2j8AD0OFUNT6CDjSoFzfpyvOojlN1gvgtDE+/ac99w2/YO+I+igOyslsydzlLgnF45gQ2+GXxtrsJ5Q5gViv6VzmNdnz8xM1aeHfwgDVHgYtIGGp0kI3J89dE2teJg41suIhnvCMLBsIiMMSdafUMLcRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709105697; c=relaxed/simple; bh=mw9EtmhvUkRrnHcT5CV9FOjIX6HotnKYpHlnylx2y+g=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=f9zcdobkyxd1TQE4pBZWFffZ40zjKa1EIL6caoWILC1LXX3QyWVLmSL0MHupFoJVzSKlRYt1LqZQ92uuIpN2EDF9ki0wubWW1CjEm8P8s0JlCXInflepbiQbR+bwtYhK2NLFUD90ylra0FFDpB1t6k2dDUHPciDg5KPvxju1zDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=YjT4dlO1; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709105694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=mw9EtmhvUkRrnHcT5CV9FOjIX6HotnKYpHlnylx2y+g=; b=YjT4dlO1cqR3Gpp0CA62nlQTgJ3bUXhm3AY8WsYKwcvKFjHacbF+TTu5cFvZ4qKN3fGn2q MhYKuV6sBpyLiWXgvurecSWtbGB3bEixZRfIShQeJx5jf8ldFGCX/lgrhJXDCTcH3n2cvt ladYP+QKGTbr0QGUH6L8iUzYrMdfQyc= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-206-fiQKRPXSPXeJbFITRQiPSg-1; Wed, 28 Feb 2024 02:34:53 -0500 X-MC-Unique: fiQKRPXSPXeJbFITRQiPSg-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-412960d90b8so3755655e9.0 for ; Tue, 27 Feb 2024 23:34:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709105691; x=1709710491; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mw9EtmhvUkRrnHcT5CV9FOjIX6HotnKYpHlnylx2y+g=; b=ahIWLNOS4iNLZVEmDFcWLMylSsbvmPZUVcMShiLM0OOsiQwC8ZZqlcdIUi5uRo13eq E3hV4YGnwmsJkQ3u01SvdQLrAt3iyadpjFtk/uklXvyOJjDVRQkcuK1Gbu0R8+4kLrD9 JKWnaviyN5obvxbiaMSJk7Rpf5S+6eqVI0Q5a3urI544GyfINdG1hMsE7pKlegSLOXfr NBpWXw+fElTSWu80aA6yH3osZLbC6W6cEFj9JVOoR+rkFYhibqouMcqHwfIWxcV/Xmf0 rELhA1V4dEc7APtdBnAeAgaXHk8nj/xjoOoh8Ij4G+QQU6mrWufHB3aAdtQ0PHQpPd6B XL+A== X-Gm-Message-State: AOJu0YyFq3FggVQEsRc1sZo+qI/V/dO1XvNM37Ah4/D/Q4lZXKF84oVY 0GcwymeNoPd3zOqyjRxtIaw4aVyv+36JrsIPdOHo7bx262INlsmZmS1mW6oNf1jaspb8/3yLfvf XZmFz9SSp1L5THvfFu3dTdpPJYGkacGrk7WlQNj90dGHYL+baRamszAeDwUSY0QsXPEtdKA== X-Received: by 2002:a05:6000:1d99:b0:33d:d932:45d1 with SMTP id bk25-20020a0560001d9900b0033dd93245d1mr5474235wrb.2.1709105691683; Tue, 27 Feb 2024 23:34:51 -0800 (PST) X-Received: by 2002:a05:6000:1d99:b0:33d:d932:45d1 with SMTP id bk25-20020a0560001d9900b0033dd93245d1mr5474224wrb.2.1709105691281; Tue, 27 Feb 2024 23:34:51 -0800 (PST) Received: from gerbillo.redhat.com (146-241-246-156.dyn.eolo.it. [146.241.246.156]) by smtp.gmail.com with ESMTPSA id cl5-20020a5d5f05000000b0033dc7e50488sm11492951wrb.96.2024.02.27.23.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 23:34:50 -0800 (PST) Message-ID: <34a1ca43d2f21428367237b4b693df6804bf716d.camel@redhat.com> Subject: Re: [PATCH] Net:cache didn't flush when ipv6 rule changed From: Paolo Abeni To: Lena Wang =?UTF-8?Q?=28=E7=8E=8B=E5=A8=9C=29?= , "davem@davemloft.net" , "kuba@kernel.org" , "dsahern@kernel.org" , "edumazet@google.com" Cc: "linux-kernel@vger.kernel.org" , Shiming Cheng =?UTF-8?Q?=28=E6=88=90=E8=AF=97=E6=98=8E=29?= Date: Wed, 28 Feb 2024 08:34:49 +0100 In-Reply-To: <3fd5e055b5f56c596416f0cf37c6b47e77af0379.camel@mediatek.com> References: <3efcbaf0872481d1a842eb9e18fa368b4b94d940.camel@mediatek.com> <655ba4a1-4f73-4ef4-aff3-0b439e65a9c9@kernel.org> <3fd5e055b5f56c596416f0cf37c6b47e77af0379.camel@mediatek.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMaMhk+L8gWc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PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, On Wed, 2024-02-28 at 07:28 +0000, Lena Wang (=E7=8E=8B=E5=A8=9C) wrote: > Dear David, > Update the patch as below, thanks. >=20 >=20 > From db01a40e45f51d00cb19e45a41507c97363d6ed8 Mon Sep 17 00:00:00 2001 > From: shiming cheng > Date: Mon, 26 Feb 2024 20:17:58 +0800 > Subject: [PATCH] Net:cache didn't flush when ipv6 rule changed >=20 > When changed from old rule&route configure to new one as below, > ipv6 cache dst_entry did not change to new route table as no > cache flush callback function, then forward to wrong out interface. > When fib6_check dst_entry, the fib6_node version[fn_sernm] is > always the same with socket dst_cookie, old cache dst_entry is > always used and no chance to update. >=20 > So we need to update fib6_node version when rule changed and > flush cache to avoid dispatching a wrong interface. >=20 > Signed-off-by: shiming cheng You need to cc the netdev mailing list to allow up processing the patch. Please also include the target tree in the subject prefix ('net' in this case), a suitable fixes tag and avoid sending patches in reply to existing threads as it confuses our bot. @David (out of sheer ignorace) could this the root cause for the fib6 self-tests sporadic failures? Thanks, Paolo