Re: [PATCH net-next v4 11/11] net: dsa: realtek: rtl8365mb: multiple cpu ports, non cpu extint

Luiz Angelo Daros de Luca
2022-01-21T04:38:04Z

> >> Are we talking about an in tree driver? If so which is it?
> >
> > Yes, the one the patch touches: rtl8365mb.
>
> I meant the DSA master network device, but you answered that, it uses a
> mt7260a SoC, but there is no Ethernet driver upstream for it yet?
>
> git grep ralink,mt7620-gsw *
> Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt:
> compatible = "ralink,mt7620-gsw";
>
> >
> > My device uses a mt7620a SoC and traffic passes through its mt7530
> > switch with vlan disabled before reaching the realtek switch. It still
> > loads a swconfig driver but I think it might work without one.
>
> Ah so you have a cascade of switches here, that could confuse your
> Ethernet MAC. Do you have a knob to adjust where to calculate the
> checksum from, say a L2 or L3 offset for instance?

Not that I could find in any docs. I just found registers to set it on
and off. However, Realtek supports two locations for the CPU tag. I'll
try the RTL8365MB_CPU_POS_BEFORE_CRC and hope the checksum will work
as expected. But I might leave that test for a moment after this
series is solved.

> --
> Florian