From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Joseph Telaak <joseph@telaak.dev>,
Jonas Gorski <jonas.gorski@gmail.com>,
Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: dsa: b53: mirror CPU-bound frames to port 5 when port 8 is unused
Date: Wed, 2 Dec 2026 14:51:20 -0800 [thread overview]
Message-ID: <fe1d9934-d985-4170-b39b-d43f06f6d94b@broadcom.com> (raw)
In-Reply-To: <20261130-b53-bpdu-mirror-v3-1-3d82c0e0571f@telaak.dev>
On 11/30/26 16:13, Joseph Telaak wrote:
> With port 5 as the CPU port and Broadcom tags, b53_brcm_hdr_setup() puts
> the switch in dual-IMP mode, in which frames for the CPU from the user
> ports still go to port 8: BPDUs, the IGMP/MLD copies
> b53_enable_mcast_snooping() enables, and most traffic of standalone
> ports. On an external switch whose port 8 is not connected these are
> lost, so STP never sees its peers and a loop between two user ports
> takes the host off the network.
>
> Mirror them to port 5: everything that leaves port 8, and frames to the
> bridge group address as they enter a user port, which the port 8 mirror
> does not deliver from a bridged port. Port 8 is enabled with its link
> forced up, in the disabled STP state and without flood receive, so that
> only frames for the CPU leave it; this relies on port 8 transmitting
> with nothing attached, as it does on the test board. The switch has one
> mirror, so tc mirror offload is refused. Frames to 01:80:c2:00:00:02, 03
> and 0d still do not reach the CPU from a bridged port. The mirror is set
> up only on the 531x5 switches: in a switch inside a SoC, port 8 is wired
> to a SoC MAC, and the external 539x, which has the same mode, is
> untested.
>
> Observed on a BCM53125 board in real use, with both user ports cabled
> into the same LAN. Tested there with a host sending test frames into a
> user port: bridged, BPDUs, broadcast and flooded multicast reached the
> CPU once each and forwarding kept working; standalone, all but EAPOL to
> 01:80:c2:00:00:03 did, once each. The IGMP/MLD copies were not tested,
> as the test kernel lacks b53_enable_mcast_snooping(). No selftests were
> run.
>
> Fixes: 8fab459e69ab ("net: dsa: b53: Enable Broadcom tags for 531x5/539x families")
> Fixes: 4227ea91e265 ("net: dsa: b53: prevent standalone from trying to forward to other ports")
> Signed-off-by: Joseph Telaak <joseph@telaak.dev>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Thanks Joseph!
--
Florian
prev parent reply other threads:[~2026-12-02 22:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:13 [PATCH net-next v3] net: dsa: b53: mirror CPU-bound frames to port 5 when port 8 is unused Joseph Telaak
2026-12-02 22:51 ` Florian Fainelli [this message]
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=fe1d9934-d985-4170-b39b-d43f06f6d94b@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=f.fainelli@gmail.com \
--cc=jonas.gorski@gmail.com \
--cc=joseph@telaak.dev \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
/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