Re: [PATCH net] net: dsa: b53: prevent standalone from trying to forward to other ports
From: Jonas Gorski
Date: Sat Feb 28 2026 - 08:31:07 EST
Hi,
sorry for being late to the party; currently on vacation (be back
early next week).
On Fri, Feb 27, 2026 at 7:13 PM Rafał Miłecki <zajec5@xxxxxxxxx> wrote:
>
> pt., 27 lut 2026 o 18:58 Florian Fainelli <f.fainelli@xxxxxxxxx> napisał(a):
> > On 2/27/26 05:32, Rafał Miłecki wrote:
> > > pt., 27 lut 2026 o 13:23 Rafał Miłecki <zajec5@xxxxxxxxx> napisał(a):
> > >> czw., 26 lut 2026 o 22:26 Florian Fainelli
> > >> <florian.fainelli@xxxxxxxxxxxx> napisał(a):
> > >>> Could you try to program GMNGCFG (page 0x02, offset 0) bits 7:6 to have
> > >>> the value 0b11 which is dual IMP port (IMPO is port 8 and IMP1 is port
> > >>> 5) and see if that helps?
> > >>
> > >> On my Luxul XWR-3150 (it uses gmac0 and port 5) the value of
> > >> B53_MGMT_PAGE (0x02) / B53_GLOBAL_CONFIG (0x00) is 0xc2. Nothing to
> > >> set there I suppose?
> > >
> > > I tried other possible values:
> > > 0x02
> > > 0x82
> > > 0x42
> > >
> > > None affected my switch / wan / lan ports.
> > >
> >
> > Thanks for giving it a try, how about the BRCM_HDR_CTRL register
> > programming (page 0x02, offset 0x03)? Can you see whether it is set to
> > 0x3 or 0x1?
>
> It's 0x02 which seems to match BRCM_HDR_P5_EN. It makes sense as
> XWR-3150 uses gmac0 + port 5.
Does this affect all ports, or only the wan port?
Have you tried to check the hardware counters if they get sent out a
different (cpu) port? AFAIK they should be available as ethtool
counters via gmacs, though I'm not 100% sure.
Can you check the contents of the EAP Port config registers? Maybe
some extra mode is set there by default.
I don't have NS(+) device, so I can only guess. Though I always
wondered if the setup which CPU port (5/8/both) to use is just a
software thing or actually a hardware thing ... .
Best regards,
Jonas