projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09339d0
)
net: dsa: yt921x: Set ageing_time_min/ageing_time_max
author
David Yang
<mmyangfl@gmail.com>
Sat, 29 Nov 2025 04:21:34 +0000
(12:21 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 1 Dec 2025 20:06:15 +0000
(12:06 -0800)
The ageing time is in 5s step, ranging from 1 step to 0xffff steps, so
add appropriate attributes.
Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link:
https://patch.msgid.link/20251129042137.3034032-1-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/yt921x.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/yt921x.c
b/drivers/net/dsa/yt921x.c
index
ebfd34f
..
d5fb17d
100644
(file)
--- a/
drivers/net/dsa/yt921x.c
+++ b/
drivers/net/dsa/yt921x.c
@@
-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;