Article View: linux.kernel.netdev
Article #12192Re: [PATCH net-next 3/3] net: dsa: forget the port ageing time when the port leaves the bridge
From: Andrew Lunn
Date: Fri, 06 Nov 2026 13:30
Date: Fri, 06 Nov 2026 13:30
20 lines
9315 bytes
9315 bytes
On Wed, Nov 04, 2026 at 12:48:30PM +0100, Oleksij Rempel wrote: > A port that leaves the bridge keeps its cached dp->ageing_time, and it > still counts for dsa_switch_fastest_ageing_time(). A port that leaves > during an STP topology change keeps the switch at the short value until > the port joins a bridge again. > > Clear the cached value when the port leaves the bridge. The switch is > not reprogrammed on leave. If the leaving port held the shortest ageing > time, for example during a topology change, the switch keeps that value > until the next ageing time change or bridge join in the DSA tree. Does the software bridge trigger an ageing time change soon afterwards? Does a port leaving the software bridge trigger a topology change? I'm just trying to understand how long the fast ageing value will be left in place. Andrew
Technical Details
Message-ID:
<ac9079a2-a197-4572-9771-c04d4bba438f@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358012-linux-kernel-netdev=dewy.ruReferences:
<20261104-ksz-stp-ageing-v1-0-2c2bc7217dea@pengutronix.de> <20261104-ksz-stp-ageing-v1-3-2c2bc7217dea@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358012-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/3] net: dsa: forget the port ageing time when the port leaves the bridge Date: Fri, 6 Nov 2026 14:30:05 +0100 Organization: Usenet Network Message-ID: <ac9079a2-a197-4572-9771-c04d4bba438f@lunn.ch> References: <20261104-ksz-stp-ageing-v1-0-2c2bc7217dea@pengutronix.de> <20261104-ksz-stp-ageing-v1-3-2c2bc7217dea@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3888577"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:mMuVdtX0GCF32QukZ+QSOzPoHTs= sha256:1Quc4+z0kRQh1VbiX30auuBzyDOdUj1fmSMD1IySPYM= sha1:kTZFgM431jkF5M59X3RURoMjxJI= sha256:ZuKt1lusxP1Lu0mqT3RUSgzHm3VPgWD5ALx2mqB/knU= 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 46F69113267; Fri, 6 Nov 2026 16:30:38 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[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 dTkXXORGeKKo; Fri, 6 Nov 2026 16:30:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-358012-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 6E97A113220; Fri, 6 Nov 2026 16:30:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 8A7C0600524; Fri, 6 Nov 2026 13:30:16 +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=1793971813; b=KuUhmD3xZM00beXTsssdUjpnlSAltF3jYKavTDRShj3zA3xKY+j9dqH8qF9F1JLrdkeP cATJ7zuyHvDqYcdxZumSMLKHZDNJNNug4dIior2bA6FWHapDbVCDasorWIr1hhu+NZ2Lw c6PAXTMrYjKzSCM37DujTT8TU19MEZ9+DhjSrQZtK06xiZ/weFLY5JRmEARhg+jZIEr/D zZiur9YUP7P/MgDhSRO3dDULtBqvLXgR7rreDOBIN0IGHC9Tj5NJ/YyuNOA9bKFzj6wWZ qio+Fk0rN9oGWYg0aCxE1n9yXmE1lHbaK9IOaP/lMUpXLLmyHxDd6rm4kxOAjqO6EvA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793971813; 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=8Z00acB9Vymz6mYsGI03MQwd0xqs9x+gv6dFEhayj3Q=; b=0p53CiyaagUKL9/tar8LgCcDinFYrhU4y7OR9TiJlLDgLOb1G/WXMTa0KvXS6TIBUJ1c lBqeTed7VID280oYXMaQck5m6ol05nlD7px9dFfkWUw+yNpHlWTNty/373iw7j0KjIXHZ 7uMGgQeBHCNGf85qNDdEh2I6mOG9KjlavZRFsD/0bIyyPorkmvY8os20rAse79uOU0eEF +TltqnQDMpYTTiXnrPaoR+fYm8P9Dlv3CPg+HP/ATkBQ/9LiDrUxd+F1apSusrnYqrlHJ EGOLovUNUbVjBjxh3ZEXhd21V9ciAH9UNFWZ2uDw7QoAhYj6u1F+AWzuieToivrW8hw== 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=SY5AWf3d; 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 9A917606D803; Fri, 6 Nov 2026 13:30:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SY5AWf3d 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=1793971812; b=Z9g4XtslQXV8FfnEJeCrmpB+AB9/kGI+x1KLcKxLWjbNlCjz09Hc3J3kfW/T0jzwKIEH REvKyuieGIdtpRDuC+qfr8f5xMLGF+hPkYAIMOwKNbi/ndf7uRdp28wU/B1Qyjf2Gn/ku sg5PGebJNicIxChEZiDUKxLoKNk3CEC9Llhj6946IdX3EUmPJQT5mMCnsS0ynkZ+lPgVT EvubyovcCuVLWkmDz1ZvE3IPWlgtC4RoYxnJbuBulVc17JByEm/WVKvw/u1F+T0mKRrik Tfp4hzQVha5sZYIkGt6D5/j5QBG3CmlUssRWBkoxJt0aiivgg3AFWkqMeeOdmXR3ghw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793971812; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=8Z00acB9Vymz6mYsGI03MQwd0xqs9x+gv6dFEhayj3Q=; b=lWuvuqjqGFnsu0+p61IeSaGb3l12iAm3hGdipU4S7pr4nMP9ccp5kzgr3ONzWluI1tai XflXk+bl+Abdu4YOyZzmeBC9GeBPX1bJW9YnHUuM3Ub1Cswbol19fDYMCY0OkZtrK+qjX cGa84mBV26gAzoO89lFectfQfloXXdyPYFdoD0ElKCWGPQCDq8ijjIpdlYMyymtbE6v1g xIzVIxtsiwo8UvlrYKyg1acqJRnuoUCJBzbF+RvLG6+KAsIliSTZK6S4XrOtlQVWfK0yl iim4fJki82ALb4kqfGM/H1DkCSUVWPzjCJBMP3zIH1ckV9XAMlCSKMbnUJaNLkoJSPQ== 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=SY5AWf3d; 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 534FB606A32E; Fri, 6 Nov 2026 13:30:11 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 534FB606A32E 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=8Z00acB9Vymz6mYsGI03MQwd0xqs9x+gv6dFEhayj3Q=; b=SY5AWf3dgVsZtdjRExSYJyozIR 1HvhjB1cx03bK2x+Exh3+aM7M1XNNcjIm66cabpATg5eynC9FWOOAtbjVyx8AB65cwDFwNdY808gT //pD40mY/NRLB8z9LFadR6OIJA91aT/EUMa9yzVjViViy7Yhq+HYKdP0vh8eHGmng3vU=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xPK17-00Em3z-Tq; Fri, 06 Nov 2026 14:30:05 +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>, 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: <20261104-ksz-stp-ageing-v1-3-2c2bc7217dea@pengutronix.de>