Skip to contentSkip to conversation

net: dsa: yt921x: Set ageing_time_min/ageing_time_max

PATCH Applied David Yang 3 participants 3 messages Nov 29, 2025 – Dec 1, 2025

Subsystems (3)
lore
Share & tools
lore

David Yang

author
#0 lore raw

PATCH 1/1 net: dsa: yt921x: Set ageing_time_min/ageing_time_max

The ageing time is in 5s step, ranging from 1 step to 0xffff steps, so add appropriate attributes.

---
 drivers/net/dsa/yt921x.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/dsa/yt921x.c +2 -0
index ebfd34f72314..d5fb17d2b6e0 100644
@@ -2855,6 +2855,8 @@ static int yt921x_mdio_probe(struct mdio_device *mdiodev)
 	ds->assisted_learning_on_cpu_port = true;
 	ds->priv = priv;
 	ds->ops = &yt921x_dsa_switch_ops;
+	ds->ageing_time_min = 1 * 5000;
+	ds->ageing_time_max = U16_MAX * 5000;
 	ds->phylink_mac_ops = &yt921x_phylink_mac_ops;
 	ds->num_ports = YT921X_PORT_NUM;
 
Signature · 1 line
2.51.0
#2 lore raw
In reply to David Yang
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Sat, 29 Nov 2025 12:21:34 +0800 you wrote:

The ageing time is in 5s step, ranging from 1 step to 0xffff steps, so add appropriate attributes.

---
 drivers/net/dsa/yt921x.c | 2 ++
 1 file changed, 2 insertions(+)

Here is the summary with links:
- [net-next] net: dsa: yt921x: Set ageing_time_min/ageing_time_max

    https://git.kernel.org/netdev/net-next/c/ea2d3befcf29

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html