Re: [PATCH net-next] net: dsa: b53: mirror BPDUs to CPU port 5 when port 8 is not a CPU port

From: Joseph Telaak

Date: Wed Nov 11 2026 - 18:24:48 EST


Hi Jonas,

> So on your board only port 5 is wired up, and port 8 is unpopulated
> and no way to make it work?

Yes. The SoC has a single GbE MAC, wired to port 5 over RGMII, and
port 8 is not connected.

> Have you tried a catch-all port 8 egress to port 5 mirror? If that
> happens to work, it should catch any trapped traffic. May not work
> while the port is disabled in software though.

I tried it on the BCM53125 with a host sending test frames into a user
port:

- Standalone port: without a mirror nothing reaches the CPU, not even
broadcast. With the port 8 egress mirror everything does except
01:80:c2:00:00:03, but only with Rx/Tx enabled on port 8 and its
link forced up in the IMP override register. EAPOL sent to the
host's own MAC does get through.
- Bridged port: the egress mirror does not catch BPDUs, whatever the
state of port 8. The DA mirror from v1 does. 01:80:c2:00:00:02/03/0d
don't reach the CPU with either.
- IGMP: with the CPU copy bits from 3362cb822ea7 set by hand, reports
for a group the bridge has offloaded reach the CPU only with the
egress mirror. I couldn't test MLD, as the board's kernel has no
IPv6.
- Both mirrors can run at once. Bridged BPDUs, IGMP reports and
standalone traffic then reach the CPU, each frame once, and
forwarding keeps working.

So for v2 I would set up both mirrors, enable port 8 and force its
link, on all dual IMP chips, and refuse tc mirroring with -EOPNOTSUPP.
Does that sound reasonable?

Joseph