Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Daniel Golle
Sat, 28 Nov 2026 19:04
[PATCH net] net: dsa: lantiq_gswip: enable assisted learning on CPU port
Author: Daniel Golle
Date: Sat, 28 Nov 2026 19:04
Date: Sat, 28 Nov 2026 19:04
60 lines
9581 bytes
9581 bytes
From: Peter Zahradnik <petzah@znik.co.uk>
The switch learns no source addresses from frames sent by the CPU, so a
station behind a foreign bridge port such as a Wi-Fi interface stays
unknown to it. When that station was last seen behind a user port, for
example the uplink to another access point, the learned entry keeps
pointing there, and frames for the station arriving on that same port
are dropped until the entry ages out. A client roaming onto a local
Wi-Fi interface loses its DHCP replies this way.
Set ds->assisted_learning_on_cpu_port so that DSA installs the addresses
the bridge learns on foreign ports as static entries on the CPU port,
which replace a learned entry for the same address and FID. This relies
on commit e29bbd73ad71 ("net: dsa: lantiq_gswip: support bridge FDB
entries on the CPU port").
Fixes: 8206e0ce96b3 ("net: dsa: lantiq: Add VLAN unaware bridge offloading")
Cc: <stable@vger.kernel.org> # 6.12.x: e29bbd73ad71: net: dsa: lantiq_gswip: support bridge FDB entries on the CPU port
Link: https://github.com/openwrt/openwrt/issues/11650
Link: https://github.com/openwrt/openwrt/pull/26988
Signed-off-by: Peter Zahradnik <petzah@znik.co.uk>
[Daniel: rewrote the commit message, dropped the code comment]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
Tested by Peter on a BT Home Hub 5A (xRX200, GSWIP 2.1) used as a wired
access point with a VLAN-aware bridge, on OpenWrt kernels 6.18.64 and
6.12.112 with commit e29bbd73ad71 backported. Without the change a
client roaming onto the access point gets no downlink traffic and roams
away again; with it the stale uplink entry is replaced at association,
and in 4 hours per kernel 25 roams left every DHCP request answered. On
net the change is not built or tested.
Use of generated content, as Documentation/process/generated-content.rst
asks: Peter wrote the change with an LLM coding assistant, as disclosed
in the OpenWrt pull request. The analysis of the bridge and DSA FDB
paths behind it and this commit message were written with an LLM coding
assistant (Claude Code), asked whether the OpenWrt issue is still
present upstream and how to fix it without regressing other cases.
---
drivers/net/dsa/lantiq/lantiq_gswip_common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/lantiq/lantiq_gswip_common.c b/drivers/net/dsa/lantiq/lantiq_gswip_common.c
index 861d9df4ff80b..d605b2e1c3153 100644
--- a/drivers/net/dsa/lantiq/lantiq_gswip_common.c
+++ b/drivers/net/dsa/lantiq/lantiq_gswip_common.c
@@ -745,6 +745,7 @@ static int gswip_setup(struct dsa_switch *ds)
}
ds->mtu_enforcement_ingress = true;
+ ds->assisted_learning_on_cpu_port = true;
return 0;
}
base-commit: 28a371228d4eb4857cc31eeb1a0d7d01e9c3ea2f
--
2.56.1
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads