net: dsa: motorcomm: Reread port flags on bridge joining
David Yang
maintainerPATCH 1/1 net: dsa: motorcomm: Reread port flags on bridge joining
DSA replays neither BR_ISOLATED nor BR_HAIRPIN_MODE on join (e.g. a LAG member rejoining its bond), so the cached flags survive into the next bridge join and program stale hairpin and port isolation state. Sync them from the bridge port.
--- drivers/net/dsa/motorcomm/chip.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/dsa/motorcomm/chip.c +8 -0
@@ -1405,6 +1405,9 @@ yt921x_dsa_port_bridge_join(struct dsa_switch *ds, int port, struct netlink_ext_ack *extack) {struct yt921x_priv *priv =dsa_to_yt921x_priv (ds); +struct yt921x_port *pp = &priv->ports[port]; +struct net_device *brport_dev; +struct dsa_port *dp;u16 ports_mask;int res;
@@ -1414,7 +1417,12 @@ yt921x_dsa_port_bridge_join(struct dsa_switch *ds, int port, ports_mask =dsa_bridge_ports (ds, bridge.dev); ports_mask |= priv->cpu_ports_mask; + dp =dsa_to_port (ds, port); + brport_dev =dsa_port_to_bridge_port (dp); +mutex_lock (&priv->reg_lock); + pp->isolated =br_port_flag_is_set (brport_dev,BR_ISOLATED ); + pp->hairpin =br_port_flag_is_set (brport_dev,BR_HAIRPIN_MODE ); res =yt921x_bridge_join (priv, port, ports_mask);mutex_unlock (&priv->reg_lock);
Signature · 1 line
2.53.0
[email protected]
AI reviewThis is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by code inspection). If it was triggered please include the symptoms, like the stack trace or error messages.
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
David Yang
maintainerQuoted 14 lines · On Mon, Nov 9, 2026 at 5:06 AM <[email protected]> wrote:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by code inspection). If it was triggered please include the symptoms, like the stack trace or error messages.
Quoted 8 lines
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Reported by sashiko, code inspection only.
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 9 Nov 2026 05:03:54 +0800 you wrote:
DSA replays neither
BR_ISOLATEDnorBR_HAIRPIN_MODEon join (e.g. a LAG member rejoining its bond), so the cached flags survive into the next bridge join and program stale hairpin and port isolation state. Sync them from the bridge port.Fixes 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")Signed-off-by David Yang <[email protected]>[...]
Here is the summary with links:
- [net] net: dsa: motorcomm: Reread port flags on bridge joining
https://git.kernel.org/netdev/net/c/7aadc87adbb5
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html