net: dsa: yt921x: Set ageing_time_min/ageing_time_max
Subsystems (3)
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.
Signed-off-by David Yang <[email protected]>
--- drivers/net/dsa/yt921x.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/dsa/yt921x.c +2 -0
@@ -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
Quoted 4 lines · David Yang
The ageing time is in 5s step, ranging from 1 step to
0xffffsteps, so add appropriate attributes.Signed-off-by David Yang <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
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
0xffffsteps, so add appropriate attributes.Signed-off-by David Yang <[email protected]>--- 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