Article View: linux.kernel.netdev
Article #23973[PATCH net] net: dsa: lantiq_gswip: enable assisted learning on CPU port
From: 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
Technical Details
Message-ID:
<10fd8e9784811ecfde8b31f59b8f1c6a94184342.1795890781.git.daniel@makrotopia.org>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373266-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373266-linux-kernel-netdev=dewy.ru From: daniel@makrotopia.org (Daniel Golle) Newsgroups: linux.kernel.netdev Subject: [PATCH net] net: dsa: lantiq_gswip: enable assisted learning on CPU port Date: Sat, 28 Nov 2026 19:04:54 +0000 Organization: Usenet Network Message-ID: <10fd8e9784811ecfde8b31f59b8f1c6a94184342.1795890781.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1011433"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bIcXed22HjZYDEzlQeyfhBkTKS0= sha256:wBJibJMRUnh4p+NRgYip1q0daRTG7gOFg+bVCF++zJ0= sha1:Xt71HbvbB00OsBksyU14T2dH6+8= sha256:bSOsX02Wg43Fn8M5wbjzYgDvJCDjthZNWO+4dGAifH4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6F9EE125F86; Sat, 28 Nov 2026 22:05:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7HoclA4WfclA; Sat, 28 Nov 2026 22:05:10 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373266-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 56595125F84; Sat, 28 Nov 2026 22:05:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 00779272FC; Sat, 28 Nov 2026 19:05:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795892704; b=e1DuGMxYruUDv085Gh6pkH4Xf82ZMD5wjBE8NFmgUAVtujfxHTMP+qs6tPN7BWRz7lSF WpT/YRJRtI1V9ncArpQZkFkjCs0dZJMmNdQ0Dy5dFsn1ordwQwMKn5aA0yYYkT7DoNUyT E7TcCmW30fvlhdtA4sxrJDI9htXJhVub4LUUnDJ15EMPxS9+HMCsUCNmj2kwliFlnDRJ/ bggy/8Y/fe6jQNiv0Z8nZNEnt6pBK5z/FZRiKrA1Uuz7J3B86N+l5pI9fUHNhFgJtlbiG X0NSAzA5HDVSl58jooyppuN0wM8me9qj7MKwvOBOLQ1p7L1P+Ah/lW0SiodGT25zRbw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795892704; h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject: Message-ID:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Disposition; bh=6aU8bdIkRLhN4Mk3LFsKiiQA2cnZ7XGo34MPM4h3Mx0=; b=cMWx+WGtWUcviEVzPVNNUv8HDxMnDszPaYs8Oy+/PM0bF6DLwM8Vsu/V78Kjsy4u43av 3U3R/UvCllGbEW1a/hIiIDaD5F10fTedW0LDSnaNb7TdxawnAiC6iJPw3QFx3W1veeqLW +aKlu/s0iQqERNy+Fl4+93CaTdlOdNcKnHnDJJkNdN0BB7PLPe1H6P6CINJuQfQd5nsxg w4Z+CsTQQFQfwY2oRwZtvc+88Hb1f68X08taAIGtghb0F2hx7ulo0+MrbTcQfY9J0SJy9 xfZGPvEoOULehPJauc9N4nRlJ7ZQBde3ORCk/8BSwUIE77b9ix/vuk8IrU7qqbACdfQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42E9E606A32F; Sat, 28 Nov 2026 19:05:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.142.180.65 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795892703; b=BcJjkZDwB0LeNLJ8Urd+iIoi6lIEr66rsj824T2VZEgVG8RdZbRWGp1AyGNw4r0AcZuf Z0SPFOx6YfpnISeR3IvwvdkE0/ZSkkoVkfAiPIAeSs5GAvmhhCLHlEd3L6NvxlUA9Jcj4 Z/4PPiqATA3CodrsIt3Acg/kAIOljtmwv/9mOzvvkgNviapjiVZ+M96bTdQhDBB6rUk/M Ps/93n8OJArMNqu5/INt1xhk36LtHC7APkAdTy6/IOyROKpAC7Qdsngf17s64C0w9iHhu xOJ4EknEYibNbgGbExQVLh4GZ+m4tFfhWom7WaivHmIpkmWgxTlH0dPVhkim+kDmKqg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795892703; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition; bh=6aU8bdIkRLhN4Mk3LFsKiiQA2cnZ7XGo34MPM4h3Mx0=; b=VcX1ANV0ZAFafdsEoby7QwPEsGO7+FNOAcnNqfQcz0hGCw/rMHsvOw0n/QNcfR1TJ/br wbnUBzwlSv+fYxcHgDf8zUtlyuxq+dVowkquIIDsfTX6/Va9iICvJPDcINnXNLJfWR9Sd QcxRBH0QArLsbgX8iyUQxV6pAeTUfg0tl0NszIZiI1VTiHnL4MFujQRElI/dITMoHYPEX RrDSlTuXjbqTbG/dhypmRJZ1N0TDFdZ4Q48NabEcE2Pi4U2flC6yspdkXVBBXxyKK6kg2 +2nOYn8Omk/t8OxDZGsJNCiSpF9WX5xOW2qRZSY4rt1lamWVy5U/onJgOiRjlukaaRQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.remote-ip=185.142.180.65 X-Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B26E606A31C; Sat, 28 Nov 2026 19:05:02 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2B26E606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org X-Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from <daniel@makrotopia.org>) id 1xXNjF-000000004fS-1013; Sat, 28 Nov 2026 19:04:57 +0000 X-Cc: petzah@znik.co.uk, stable@vger.kernel.org, petzah@znik.co.uk X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list