From: sashiko-bot@kernel.org
To: "Rosen Penev" <rosenp@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node
Date: Sat, 05 Dec 2026 05:22:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-251114@kernel.org> (raw)
In-Reply-To: <20261205050417.61345-2-rosenp@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] ARM: dts: marvell: port 6 overwrites mv88e6xxx CPUDest register
- [Medium] ARM: dts: marvell: port 6 causes duplicate bridged floods in
mv88e6xxx
--
commit 1b3971c987afa66e2e2ce1fae1d3f6e610fa8eba
Author: Rosen Penev <rosenp@gmail.com>
ARM: dts: marvell: armada-385-linksys: add switch port 6 node
This commit adds switch port 6 as a second DSA CPU port connected to eth0
over RGMII with internal delays on Linksys Armada 385 boards.
> diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
> index 4116ed60f7092..58ee283735e0b 100644
> --- a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
> +++ b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
> @@ -201,6 +201,18 @@ fixed-link {
> full-duplex;
> };
> };
> +
> + /* RGMII, delays strapped on the switch */
> + ethernet-port@6 {
> + reg = <6>;
> + phy-mode = "rgmii-id";
> + ethernet = <ð0>;
> +
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
[Severity: High]
Does adding port 6 as a second CPU port overwrite the switch-wide CPUDest
register from port 5 (eth2) to port 6 (eth0)?
dsa_tree_setup_cpu_ports() assigns all user ports to the first local CPU
port, port 5 (eth2), so dsa_user_open() leaves eth0 administratively down.
During mv88e6xxx_setup(), mv88e6xxx_setup_upstream_port() runs in
ascending port order and dsa_upstream_port() returns port itself for every
CPU port. Iteration 6 therefore overwrites the global CPUDest and monitor
destination registers from port 5 to port 6.
Trapped control frames such as IGMP, MLD, and STP BPDUs then egress port 6
toward the down eth0 interface and are silently dropped. Because
mv88e6xxx_switch_ops lacks port_change_conduit, userspace cannot move user
ports to eth0 or bond eth2 and eth0 into a conduit LAG.
[Severity: Medium]
Can bridged user ports duplicate flooded frames when eth0 is brought up
alongside eth2?
When user ports join a bridge, mv88e6xxx_port_vlan() adds every local
DSA_PORT_TYPE_CPU port to each bridged port's Port Based VLAN Map without
restricting it to dp->cpu_dp:
drivers/net/dsa/mv88e6xxx/chip.c:mv88e6xxx_port_vlan() {
...
dsa_switch_for_each_port(other_dp, ds)
if (other_dp->type == DSA_PORT_TYPE_CPU ||
other_dp->type == DSA_PORT_TYPE_DSA ||
dsa_port_bridge_same(dp, other_dp))
pvlan |= BIT(other_dp->index);
...
}
Because dsa_tree_setup_conduit() attaches DSA RX handling to both eth2 and
eth0 and dsa_conduit_find_user() does not check dp->cpu_dp, every
broadcast, multicast, and unknown-unicast frame on a bridged port is
flooded to both conduits and delivered twice to the same user netdev.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205050417.61345-1-rosenp@gmail.com?part=1
next prev parent reply other threads:[~2026-12-05 5:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 5:04 [PATCH 0/2] ARM: dts: armada-385-linksys: describe switch port 6 Rosen Penev
2026-12-05 5:04 ` [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node Rosen Penev
2026-12-05 5:22 ` sashiko-bot [this message]
2026-12-05 5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
2026-12-05 5:09 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-251114@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rosenp@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox