Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

David Yang and committed by
Jakub Kicinski
ea2d3bef 09339d0d

+2
+2
drivers/net/dsa/yt921x.c
··· 2855 2855 ds->assisted_learning_on_cpu_port = true; 2856 2856 ds->priv = priv; 2857 2857 ds->ops = &yt921x_dsa_switch_ops; 2858 + ds->ageing_time_min = 1 * 5000; 2859 + ds->ageing_time_max = U16_MAX * 5000; 2858 2860 ds->phylink_mac_ops = &yt921x_phylink_mac_ops; 2859 2861 ds->num_ports = YT921X_PORT_NUM; 2860 2862