lkml.org 
[lkml]   [2023]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net v3 4/5] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging
From
On 30.12.2022 10:31, Felix Fietkau wrote:
> Through testing I found out that hardware vlan rx offload support seems to
> have some hardware issues. At least when using multiple MACs and when receiving
> tagged packets on the secondary MAC, the hardware can sometimes start to emit
> wrong tags on the first MAC as well.
>
> In order to avoid such issues, drop the feature configuration and use the
> offload feature only for DSA hardware untagging on MT7621/MT7622 devices which
> only use one MAC.
>
> Tested-By: Frank Wunderlich <frank-w@public-files.de>
> Signed-off-by: Felix Fietkau <nbd@nbd.name>

You can add this to all patches on the series.

Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>

Tested on Unielec U7621-06 (MT7621AT) and Bananapi BPI-R2 (MT7623NI) on
latest netnext with buildroot as initramfs. These are tested with my fix
[0] applied on top.

VLAN on DSA master gmac0.
Works on MT7621 SoC with multi-chip module MT7530 switch and MT7623
SoC with standalone MT7530 switch.

VLAN on DSA master gmac0 and non-DSA gmac1.
Works on MT7621 SoC with multi-chip module MT7530 switch and MT7623
SoC with standalone MT7530 switch.

VLAN on DSA master gmac1.
Can’t test on MT7621 as an unrelated issue prevents from testing.
Define port@6 and gmac0, otherwise gmac1 DSA master receives
malformed frames from port@5. This issue appears only on MT7621 SoC
with multi-chip module MT7530 switch.
Works on MT7623 SoC with standalone MT7530 switch.

VLAN on DSA master gmac0 and DSA master gmac1.
Works on MT7621 SoC with multi-chip module MT7530 and MT7623 SoC with
standalone MT7530 switch switch after compensating an unrelated issue.
When both MACs are DSA masters, ping from gmac1 DSA master first,
otherwise frames received from user ports won’t reach to gmac1 DSA
master. This issue appears on MT7621 SoC with multi-chip module
MT7530 switch and MT7623 SoC with standalone MT7530 switch.

It'd be great if you could take a look at these issues.

Network configuration:

For DSA master gmac0/gmac1
ip l add link lan3 name lan3.50 type vlan id 50
ip a add 192.168.3.1/24 dev lan3.50
ip l set up lan3 && ip l set up lan3.50

For non-DSA gmac1
ip l del lan3.50
ip l add link eth1 name eth1.50 type vlan id 50
ip a add 192.168.3.1/24 dev eth1.50
ip l set up eth1 && ip l set up eth1.50

Other side
ip l add link enp9s0 name enp9s0.50 type vlan id 50
ip a add 192.168.3.2/24 dev enp9s0.50
ip l set up enp9s0 && ip l set up enp9s0.50

[0]
https://lore.kernel.org/netdev/20230128094232.2451947-1-arinc.unal@arinc9.com/

Arınç

\
 
 \ /
  Last update: 2023-03-27 00:00    [W:0.087 / U:1.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site