Article View: linux.kernel.netdev
Article #16683Re: [PATCH net-next v2 2/3] net: dsa: ignore the old ageing time of the port being changed
From: Andrew Lunn
Date: Sun, 15 Nov 2026 15:40
Date: Sun, 15 Nov 2026 15:40
23 lines
9720 bytes
9720 bytes
On Sun, Nov 15, 2026 at 11:59:52AM +0100, Oleksij Rempel 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]
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<f5375974-fed7-481c-b19c-c055f9309255@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363740-linux-kernel-netdev=dewy.ruReferences:
<20261115-ksz-stp-ageing-v2-0-7af27320033e@pengutronix.de> <20261115-ksz-stp-ageing-v2-2-7af27320033e@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363740-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/3] net: dsa: ignore the old ageing time of the port being changed Date: Sun, 15 Nov 2026 16:40:13 +0100 Organization: Usenet Network Message-ID: <f5375974-fed7-481c-b19c-c055f9309255@lunn.ch> References: <20261115-ksz-stp-ageing-v2-0-7af27320033e@pengutronix.de> <20261115-ksz-stp-ageing-v2-2-7af27320033e@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1840148"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:M5BXPLfw0OY0gyb4HZTTpwTXaZ4= sha256:bCrIU4HPEUoCYDmKsahVi8yMxpFNv8WO1VxYHMHzScY= sha1:SqIp/1BLICiQ3/IHaAOGBNvE/k4= sha256:K5ZRvnvWmCkTZQqsbpWSft7Adk/xpCVW3zePkz2pE5c= Content-Disposition: inline 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 55E6A1149F6; Sun, 15 Nov 2026 18:40:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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 (1024-bit key) header.d=lunn.ch 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 4GBGkdiLcDwg; Sun, 15 Nov 2026 18:40:36 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363740-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 95CDD1149BD; Sun, 15 Nov 2026 18:40:23 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2300632C12; Sun, 15 Nov 2026 15:40:21 +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=1794757220; b=wbIcctw3HMXJu3XhNIGMNX6ldgmOBAVy/JDm2PBRuqMD4QSsBrJ02rlmNn6ew+B/jbi6 IdASGVVTuHtRU0wYMwIT4Qyj4a+tTdNTUgU6wv/573qsb6ZN8Ji6+QyTF+FYTZz64/pnc diu/ezU5eUjYmYAq+UD7i/2Q9ZGE2H4krXa1VJYBIKzjZ7woxNPHx33SD+UipE8qnrWHZ 3J4/zF52jrGlC2CzFAqKL6F0CUn2RPt8E0SnlBZPy8hpsMjD9Sr477MKZkm8g1jOBAV3O HGgFKKfqFZk0TFMfR3uVrw1xpYr1scjCUdGP9ufojMah74VwKOSCjsbWJmTmmknXA4A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794757220; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=bPIObcCpstMVT58z9EEfKNxmTMDtqL8XKVOJge404XA=; b=AqehD8cyxSvWM3BkANBWbdm+94xKvddZCAy3BIbhM+1wfe8hH2CFsToMsTUsWnY/Dlwx 4gVx0mWZEUBETTWmXmRQY9fMdGlR6yelvCKVYRc4RwsFCW53K+aYjM9wzuEmVv3fFPIpr PShpyN7U9bBp5OODyAZ7juKCcx4tt5awZCmnjuRRDdrd1lqtYYUQpuzM1OODoo5pZ3N/0 UBpGxqTdBCPyC8WePY98xlAY5tw4oGSEN2rWDPzZjclGrgdkBY7WXzdKYJKD0ycFGx9W9 PveqwSRdmW7kn9canrevIJP3wk/k7DbD+Jl2EzY3XrOzwZUsidC4yM4d0u3YxOCaEdA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=0wPdOtAB; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 87579606A334; Sun, 15 Nov 2026 15:40:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=0wPdOtAB X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794757219; b=wfpe9SjGmcM5c4P/vY0yEaJ0jLkf5z2SCEZlCyrUTrzy0nmUIOZ9ZgR2UoopmnLt2G2j 3413l+toakqhPaW8j1Kcz9VQ3JS0I4Ae1S1cxQtNGoa3C6IGfiLb//n9AZP4D99aZxSV+ rINFsuqTfHtYK0qLvYdzSL2XW75pj9NbEYhiwwwb5YMzToUTm2mSrGWgLfBwJtt+fHbw7 sN3HjoWuDBJBxK9BSl4hXa/Q8OPsvilHh4UyvgVZk5YWPR5rIBu3AzlRQpRn0MvzkGdQo 1nFlGF/XY4XAjqgF0H82TP74HWCgYvXbQPYRpxlAEajYrIXmq3cs+vAfJ1aDQf0UO6Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794757219; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=bPIObcCpstMVT58z9EEfKNxmTMDtqL8XKVOJge404XA=; b=uwZzxB4on7Evto5q+bq3E50mEuJPi0qZ7zQiCob871sQ2VEn4LqTqcs4mvycrylL3acz tjgBMfBY4qVA/omf0DXOnAv9T2pIEPEfSeXg7x0OXHOgzbEp0i4j8tnHiYfwH9AAAbvjy bx8MnlOZRGNLxGK/hWOr73q4utqnSfFx1vLJHx8AFA9+6KViZ5PSn6wg2d2u6vExnwaUL IsW5T/cQPK0vgmK3de3yRnTS7JnZH4+nk7b9dz+c4z6W4Dg02T8jVMJl+fEEzXs22jmAg krJAGmIFEr1MFaI8i99ko7iG/md1fKwHLkFurlLKFC+xe5Dj+8v6Nn8JYhumYhY3rog== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=0wPdOtAB; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 612F8606A31D; Sun, 15 Nov 2026 15:40:19 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 612F8606A31D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=bPIObcCpstMVT58z9EEfKNxmTMDtqL8XKVOJge404XA=; b=0wPdOtABb/1DvBn4wuVw0f9jFG Zc+cO0CosdnTTmEtvzVy2r3NvmIjfViMv16Qyh/CiTE8lxZDZEjlwpRCkSaiuKTDAQHCFM0mNqPAq HWGEmo4ur2qL2/MscWoZgzAZbKFzhbX/P3dFkywsceh61k5Ymr31lUqA3K0+4E9H7Ia8=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xScKz-00GdQK-8a; Sun, 15 Nov 2026 16:40:13 +0100 X-Cc: Woojung Huh <woojung.huh@microchip.com>, UNGLinuxDriver@microchip.com, 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>, Linus Walleij <linusw@kernel.org>, 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-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: <20261115-ksz-stp-ageing-v2-2-7af27320033e@pengutronix.de>