From: "Arınç ÜNAL" <arinc.unal@arinc9.com>
To: Felix Fietkau <nbd@nbd.name>,
netdev@vger.kernel.org, John Crispin <john@phrozen.org>,
Sean Wang <sean.wang@mediatek.com>,
Mark Lee <Mark-MC.Lee@mediatek.com>,
Lorenzo Bianconi <lorenzo@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Russell King <linux@armlinux.org.uk>
Cc: Frank Wunderlich <frank-w@public-files.de>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
erkin.bozoglu@xeront.com
Subject: Re: [PATCH net v3 4/5] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging
Date: Sat, 28 Jan 2023 20:38:11 +0300 [thread overview]
Message-ID: <79506b27-d71a-c341-48fd-0e6d3a973f2e@arinc9.com> (raw)
In-Reply-To: <20221230073145.53386-4-nbd@nbd.name>
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ç
next prev parent reply other threads:[~2023-01-28 17:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-30 7:31 [PATCH net v3 1/5] net: ethernet: mtk_eth_soc: account for vlan in rx header length Felix Fietkau
2022-12-30 7:31 ` [PATCH net v3 2/5] net: ethernet: mtk_eth_soc: work around issue with sending small fragments Felix Fietkau
2022-12-30 7:31 ` [PATCH net v3 3/5] net: ethernet: mtk_eth_soc: fix flow_offload related refcount bug Felix Fietkau
2022-12-30 7:31 ` [PATCH net v3 4/5] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging Felix Fietkau
2022-12-30 11:46 ` Aw: " Frank Wunderlich
2022-12-30 12:56 ` Felix Fietkau
2022-12-30 13:56 ` Aw: " Frank Wunderlich
2022-12-30 14:58 ` Felix Fietkau
2022-12-30 15:33 ` Aw: " Frank Wunderlich
2022-12-30 15:38 ` Frank Wunderlich
2022-12-30 16:13 ` Felix Fietkau
2023-01-06 12:18 ` Aw: " Frank Wunderlich
2023-01-28 17:38 ` Arınç ÜNAL [this message]
2023-02-08 7:46 ` Aw: " Frank Wunderlich
2023-02-08 8:16 ` Arınç ÜNAL
2022-12-30 7:31 ` [PATCH net v3 5/5] net: ethernet: mtk_eth_soc: ppe: fix L2 offloading with DSA untagging offload enabled Felix Fietkau
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=79506b27-d71a-c341-48fd-0e6d3a973f2e@arinc9.com \
--to=arinc.unal@arinc9.com \
--cc=Mark-MC.Lee@mediatek.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=erkin.bozoglu@xeront.com \
--cc=frank-w@public-files.de \
--cc=john@phrozen.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.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