🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18119

Re: [PATCH net-next v3 2/3] net: dsa: ignore the old ageing time of the port being changed

#18119
From: Linus Walleij
Date: Tue, 17 Nov 2026 21:37
30 lines
10528 bytes
On Tue, Nov 17, 2026 at 2:02 PM Oleksij Rempel <o.rempel@pengutronix.de> wrote:

> Pass the port to the ageing time notifier. When
> dsa_switch_fastest_ageing_time() takes the minimum, skip the cached
> dp->ageing_time of that port and use the requested value instead. DSA
> updates the cache only after the notifier.
>
> Without this, the minimum includes the port's old ageing time. During
> an STP topology change, the bridge lowers the ageing time to
> 2 x forward_delay (8 s with forward_delay 4 s). When it restores the
> configured value, DSA programs the cached 8 s again, and the switch
> keeps ageing at 8 s.
>
> An automated review of the lan9645x bridge series pointed this out [1].
> I reproduced it on a KSZ9893 and tested the fix there.
>
> Fixes: 77b61365ecef ("net: dsa: remove the transactional logic from ageing time notifiers")
> Link: https://lore.kernel.org/netdev/179180428624.434549.14425623884223795761@kernel.org/ [1]
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>

This looks right to me, good find from Sashiko!
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Technical Details
Message-ID: <CAD++jLn2szo5NY7zqwCyRAkdNJQ60DcMnQUbjf+L_w-+MkBHYA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365628-linux-kernel-netdev=dewy.ru
References: <20261117-ksz-stp-ageing-v3-0-135de6b9f8ad@pengutronix.de> <20261117-ksz-stp-ageing-v3-2-135de6b9f8ad@pengutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365628-linux-kernel-netdev=dewy.ru
From: linusw@kernel.org (Linus Walleij)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 2/3] net: dsa: ignore the old ageing time of the port being changed
Date: Tue, 17 Nov 2026 22:37:44 +0100
Organization: Usenet Network
Message-ID: <CAD++jLn2szo5NY7zqwCyRAkdNJQ60DcMnQUbjf+L_w-+MkBHYA@mail.gmail.com>
References: <20261117-ksz-stp-ageing-v3-0-135de6b9f8ad@pengutronix.de> <20261117-ksz-stp-ageing-v3-2-135de6b9f8ad@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network; logging-data="2432734"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3Umw3g7nDH2CnR7ilW/Z1bkOABM= sha256:vffNYlw1FAx/qiLSLwqxyrz/vDoKVjzwiIthLceidI0= sha1:cg+WaPCVpgPowJtFzLy+FMRx+LA= sha256:AU9OhLn353+uF+lO1cMpSEZtjt+hUor5y8SKQHK0exY=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 08930115099; Wed, 18 Nov 2026 00:38:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mXaHJ1F7kFMz; Wed, 18 Nov 2026 00:38:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365628-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 69DCA115094; Wed, 18 Nov 2026 00:38:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 28B00329EF; Tue, 17 Nov 2026 21:38:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794951484; b=HQ02xS29IitnENSx7/QZ8/dvkQIUcHBJgYXlz7CAChBOcaontysdH2FrQEnfAsSN+MsO DO8qtlSdJ8p9JI0eitYVuel77VZvS6IytURngdnGQDiYg5pJuS9dpS9mpWS0fG4ndjZVH MvhrCVATMvMsMN64zFBdvP3DSwHNj7ZcQtP3mupec3at6inxqJ8xCxbaXX/3NSXXmCNlh wkLCiOcGuSxHXpdIxplWTGQYSwjwOqOzUi6PxivXk8bAQSStT33+0EkbBYgldxKd7Fdix LhhDp5X5vW39Y2I5w861PnE8r/uwD+vLoDDzywlPB3mMcGlY2cPoPsYZymmmzWGSpcA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794951484; h=X-Original-To:Received:Received:DKIM-Signature:Received: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date: X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc: Content-Type:Content-Transfer-Encoding; bh=43QFFgwzukS6yZXLYhZVbDexLmF7PKGNOsnRTi6FpR0=; b=yJw6Pfmtqx3KSJgAzuihCdXApc1bv9wmHA5wdnkEfUjkrbFAwJENYOq1bcORUBlIwq1e viDpYDBYsnB6aQdxRW15+JLokdbN2utiLC7nyg3yBAsnJXAiii1GtpeR0my6i+7nvuYak 6/cBqyR9pz2TUP8/9x8W//jeAn71Oc3/7uXA65fznLMJH42ECyGi12TsTfLnspyRcQQXG uxT7QTEn5ox2Rmdq8MflP3R6nBcW1tRcYasCqJ5BzuHuXqfR24K4LiLcaSddQL1XGXbZa 8WeQxVa8bxxAJffV5r4O64Pwhm8ZNX5qEZtSPIR23dq0RWxiH1qD2eXhWSWSfkqWmSA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ciudnLAv; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3936606A335; Tue, 17 Nov 2026 21:38:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ciudnLAv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794951478; b=pG/ka0nBpD4MwUp8FvONfSBIin6sDfu0HIFOMuMqjxIVIX3YorJbCS6aRHbbqCsRFwcS mC9sxPwWp+0KPNALRKTd1E/LUUyQxZzAD+qX4V9PlRDNKeLEZpjDcST8SssiPa9Yv+Trd OPD3N/BPZu/kP6lzXLGh+mVxAS2sbVI2OmXZI98Y8td8MNYJmBAdTZAyoMzPsAAp003lY xEnqFiTIM95n5zR2QEDgdIZle0gc+CqcrmJv+LPpNT2Jdst1jRCLeAqFsKJTuaTHc3qMy x4lZoeGMqdOfKboggMhpDrCfcgpHT6bzoyZTOY0VD87cZMPBlXSDvze2hr8JFy2IJOw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794951478; h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted: X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To: From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID: Subject:To:Cc:Content-Type:Content-Transfer-Encoding; bh=43QFFgwzukS6yZXLYhZVbDexLmF7PKGNOsnRTi6FpR0=; b=15E0z4Nc/zbGoYWa4DR0DnUbJTGvMHaUY8NyPP5I+uVTPQ6sWO8upf50B1pNTAnHBj3F 4IoxPVxBmb74Ragp5RcC4q7Rl2kuJxLtuWUSp6wsx18hshKejgbPPOzIsDlDzcSEU4z5z yGn5WOeX2RTqx3SoPgS9MkBx3loBlv0Yby4Hn/a0BJlviEMK43iOJg3ovEVc6rgCB8l49 zPnDmP/bDFDA8hTv1f8xP1kl4dVSxtYpu7cff8LhPsF7cO5gvgbK6GvGsjmyqSej9lMXq LogkHu2NtybcsNxtIu04SQk+7LKmI1YfRkEVPi8eur9tdmMfi6n0ghKmR8bnyUoS/kw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ciudnLAv; arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BA48606A31C for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 21:37:57 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0FC51F000D0 for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 21:37:57 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794951477; bh=43QFFgwzukS6yZXLYhZVbDexLmF7PKGNOsnRTi6FpR0=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=ciudnLAvHlTz/pkvaO3mVSNytfC2Xd/M8nBp8rOsJDKgki1AwqhOgOpe+GgeqRdmX BS4/93t6Dzt3cQvUrwMqTHI6/tKG1otW4QpgsavG2L7IZJIZ5AEHC8vHQkM5q8fF2p CppMoj0//1c/edMc3nGCfXyWIQS9jJTKqm/OOVhhm6gH3ZNY7d4BdfZ2Yrp6NVFwNw h8/mP2X5xq9MwNwT8+dXZQrevlvU7gVVPUJsrH6utRXIf5UplbLKxD6mQHA3huXFqG NXD1DK3eDiMnPw15vgIYslsIBgeWMUPgqSp2t431IWH/WgrqBLL6+Xpv3oBCco2Cfn VY3MVNQCKqLrg==
X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5be47aa555cso248043e87.3 for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 13:37:57 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErHU+FWY8bYTZJPTlxp5bNOkOEcjSWnZ8IxOq9kI1RAUnuhi+AONbVEzaLFPxsWIwA5Pkdhbwsg=@vger.kernel.org
X-Gm-Message-State: APuU4Z/zp92v2H7MsgcWgqlh4/bxrN7jJp6bgSxLC5GW2I/gbnj0OJub nVmN7ZJ7wupyQOI/pDpMZg/yf+5DafmK6U8/ZD0h8oANA9YcUNe4VFt9uszSvYOt1cW34LdKs0Z 6iJQrNgTpyLD2TSQMohTL+4veSH2jeEE=
X-Received: by 2002:a05:6512:2313:b0:5c1:4bcd:c316 with SMTP id 2adb3069b0e04-5c1aa0705c5mr133596e87.10.1794951476413; Tue, 17 Nov 2026 13:37:56 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261117-ksz-stp-ageing-v3-2-135de6b9f8ad@pengutronix.de>
X-Gmail-Original-Message-ID: <CAD++jLn2szo5NY7zqwCyRAkdNJQ60DcMnQUbjf+L_w-+MkBHYA@mail.gmail.com>
X-Gm-Features: Aa3M54o0xRQuY3uXAHxYl11MpuvPvx6L6rwTSmOyLONxxLvVQa0OV7NqUKk9kts
X-Cc: Woojung Huh <woojung.huh@microchip.com>, UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Arun Ramadoss <arun.ramadoss@microchip.com>, Jiri Pirko <jiri@resnulli.us>, Florian Fainelli <f.fainelli@gmail.com>, Vivien Didelot <vivien.didelot@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
X-Received-Bytes: 10242