🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16682

Re: [PATCH net-next v2 1/3] net: dsa: microchip: ksz9477: apply a shorter ageing time at once

#16682
From: Andrew Lunn
Date: Sun, 15 Nov 2026 15:38
34 lines
10149 bytes
On Sun, Nov 15, 2026 at 11:59:51AM +0100, Oleksij Rempel wrote:
> Pulse Fast Aging when the programmed ageing time gets shorter or the Age
> Count gets smaller.
> 
> The ageing time is Age Count times Age Period. An entry stores the Age
> Count when it is updated, as the datasheet says. The datasheet does not
> say when a new Age Period applies.
> 
> Without the pulse, stale entries outlived an STP topology change. In my
> STP tests the switch ran at 300 s as 4 x 75 s, its reset value. With
> forward_delay 4 s, the bridge asks for an ageing time of 8 s. Read back
> right after the write, the register showed 8 s. In three tests, an
> entry learned before the change still stayed for more than a minute. I
> think the switch uses the new Age Period only after the running one
> ends.
> 
> The pulse is also needed when the ageing time grows but the Age Count
> shrinks. From 8 s (4 x 2 s) to 31 s (1 x 31 s), an entry stayed about
> 63 s in one test.
> 
> On a KSZ9893 the pulse removed the dynamic entries on the one user port
> I tested. The new period then started right away.
> 
> I found this in STP tests on a KSZ9893. I tested the fix there with
> kernel STP and with STP off. With mstpd I checked only the programmed
> ageing time, not the FDB.
> 
> Fixes: 2c119d9982b1 ("net: dsa: microchip: add the support for set_ageing_time")
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <8a5d8502-3c38-4161-9b1d-381ef6e2344c@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-363739-linux-kernel-netdev=dewy.ru
References: <20261115-ksz-stp-ageing-v2-0-7af27320033e@pengutronix.de> <20261115-ksz-stp-ageing-v2-1-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-363739-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 1/3] net: dsa: microchip: ksz9477: apply a
 shorter ageing time at once
Date: Sun, 15 Nov 2026 16:38:13 +0100
Organization: Usenet Network
Message-ID: <8a5d8502-3c38-4161-9b1d-381ef6e2344c@lunn.ch>
References: <20261115-ksz-stp-ageing-v2-0-7af27320033e@pengutronix.de>
 <20261115-ksz-stp-ageing-v2-1-7af27320033e@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1838920"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5LmgZuCF/sRduO5TXWp+ijTdvZU= sha256:2CeBw47TdEAhrpfTpcMMP21a0oGCycm2SoCPUo6kIok=
	sha1:wLc600+HN4Xp62+rLTkEZElGn2Q= sha256:RZtUSgdCJnqY8SnCYg6gpv0O37FrqU+PrYqtHdppZp0=
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 BB8951149F5; Sun, 15 Nov 2026 18:38:43 +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 gSaF1K4meU6f;
	Sun, 15 Nov 2026 18:38: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-363739-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 37BA01149E1; Sun, 15 Nov 2026 18:38:26 +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 84CF8290B7; Sun, 15 Nov 2026 15:38:23 +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=1794757102;
	b=ZbpyxPnM8L5Hwz7Rj/eAhmMukVNhf/oXmcsP0Q2wloYpyNJboq1THbbWXGAnSxfK5KQT
	 EL/gDgfswV58m+aiyq1eri7pWwSzmJPuBOi5pyaTJ65F8CIj68acv38dDHM9yaKmr1lQf
	 A/+PhHHfdiR3bkddzUTLUrL7KokJZa07OP/6sn1TGUdFo59tkdkCmTA6fVk1FbXO8pxeT
	 rlhu9KTegl4SumaCbQftTv3xG6TlDA6Z/rWuXT0F5YHI/GnFKfrmv+QofzVRyZpw/fjm3
	 +/hVTY1A+EYsd5ZTjSb/8Gxg1knrnWXDLClHzEQJ4kgYtnCd6kSAEaJi70Up4PAMTsA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794757102;
	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=kjUb2QBVxfOsNlHQ0DPSHIBk+8dBDbVKHbOy3HIK0ps=;
	b=olt9GKSG0XXoI+S1B0g8Ohc3jP+ZS2BNkCv7Fr8xqEHxQc6uUNPnsbD8ha/6zEwud3fc
	 0Z+DktGNaOkhqRvbB4OLbxuSIWLvVNPNxIAvs1DnnQZ+vdJluGXKlJ88Oq+kUi18v2S2j
	 SN0jw8hhPqFxUleECFW0NfeUalgdFlcE7zoNHvsluk3fj85dlDX/1rQlzwYyHQnhJyvH/
	 hKWqZBA6+b4oBMjAyqW6OZFMuBD9qjehXXlNpQLz5LLTBA5SfkyQ5mOhQ1j1TnH0P22mg
	 9wraVetVFjSQVFCd5Px/GPWZJ3V830hUD7LTSPIRUY0WkXdJUFmqOJbH4VDPw8vVtJw==
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=djoWjanA;
	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 892C7606A334;
	Sun, 15 Nov 2026 15:38:22 +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=djoWjanA
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=1794757101;
	b=fdY310yyBC5j0Hu8KVtJwMTFa0SQQWCvlnZSOe+bnYKzR4XDSrYQLXDhpb/B/mjrdZnJ
	 wZmdmX73ID2uoyC3AXkLFpuIP615tbp3jZsdxMw3bLVayz3eHKNjlZxQGTst9/U6pCuDv
	 GT7UqP0ERZC6oDI1wHCD7tz04C9sD7WL5BvlqSnlBTAGTodtJk0LQX8Sw06omi0q8W1W9
	 r3E14NxGrgMyNF2k3oQg6d7iKU9vFonhB3QDRctJT0B7LKVUoEMuoB6arkLpG9/jTJ53v
	 HPvhMEYz40n6fyl/qmXy2vhkNqy5vOKLreKFPFYbDCNiDSyh7y0frWYWqgeOaZ9VoIA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794757101;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=kjUb2QBVxfOsNlHQ0DPSHIBk+8dBDbVKHbOy3HIK0ps=;
	b=ZqShYqKTfE/KgPyq+aXmXa4Upa9OEAaskyGU23tMkZ6tr+YPIAOGflMp01W+pqxoKsEC
	 qHX0CM0LK9+iU/vBkTQvFNeSMrkRduSgW6J+gzmotazMRPFGInc7Ihm+LhbkdnjESqUC5
	 7JT8sHNIzEUynVeDfoaZUyQAb+9ixPLLyQljq73QoG44WTT9htkbvxY4Zh+IoyoDOOSVR
	 KwbwYRkA78dzpweCTw6A3peo2QRJsH76ouGHTsK7gfGn2xJ1ddq5W1E+jkwmUj2V6IeG1
	 x4094NgVRFaC2zjLZfBs7bCbS/lUoPteaeOLbMa3I67zjx76Y10nNUEMXcK4EN+XasA==
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=djoWjanA;
	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 5DDC9606A323;
	Sun, 15 Nov 2026 15:38:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5DDC9606A323
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=kjUb2QBVxfOsNlHQ0DPSHIBk+8dBDbVKHbOy3HIK0ps=; b=djoWjanAFV8NB/jD9HENjMURCS
	OONd5UOcpqmbiSEnRDz7gJL3l0E4rhIs3yfSyyRgQdDMjR/FqoRha3GqAWzCk00uFzcwgYNSWYDxh
	l3kSg93tj3eeQZoAQ12qXbZY32/HzDGRfWkcRBbx1WR9NlJI1UFAVWxmX4KQ46JLS9hU=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xScJ3-00GdPP-M5; Sun, 15 Nov 2026 16:38: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-1-7af27320033e@pengutronix.de>