]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: microchip: bypass dev_ops for FDB ageing operations
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 12 May 2026 13:06:24 +0000 (15:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 May 2026 01:16:14 +0000 (18:16 -0700)
commitf27ae140c8da251b72d8eea53efd172ac1682faf
tree3ebf3801bd205f0901c2a6d4d3fb1fb4f34850dc
parent83ea7fd73b11dd8cbf4416507a5eac3890b49fb0
net: dsa: microchip: bypass dev_ops for FDB ageing operations

dsa_switch_ops :: set_ageing_time() goes through ksz_set_ageing_time(),
further dispatched through ksz_dev_ops :: set_ageing_time(). Only
ksz9477 and lan937x provide an implementation for this, so remove the
(optional) method from ksz8463_switch_ops, ksz87xx_switch_ops,
ksz88xx_switch_ops. Also, hook up ksz9477 and lan937x dsa_switch_ops
directly to their respective implementations.

Every switch family provides a dsa_switch_ops :: port_fast_age()
implementation, which is dispatched through ksz_dev_ops ::
flush_dyn_mac_table(). Remove the dev_ops indirection and connect the
flush_dyn_mac_table() methods directly to their respective dsa_switch_ops.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20260512-clean-ksz-2nd-series-v1-2-c00f6ce037fa@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8.c
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz9477.h
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/lan937x_main.c