Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1147189rwr; Wed, 26 Apr 2023 10:38:52 -0700 (PDT) X-Google-Smtp-Source: AKy350b+IWu67eKmvHEWSspsOc9zEhv8KFSvuYuq45xGD5wtNI6NNi0dDFnPPRsy3PoC2iXR5sIt X-Received: by 2002:a17:902:f693:b0:1a2:58f1:5e1d with SMTP id l19-20020a170902f69300b001a258f15e1dmr28155561plg.36.1682530732339; Wed, 26 Apr 2023 10:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682530732; cv=none; d=google.com; s=arc-20160816; b=ZC6sJA+6lMZt51udThrJlSekcXw+MtYubjDCjijNtw5aXbRDsEBPXn3RRJGzSUbhyB Pv9AGI8Kt1jergUTrwIU7Ygza0Q9ex+IiYSoba0kvy5GPZ6sKoN/r8A45LjjVPKlucvO ZE+MLjUGtExAaDHkl6Ze4fo0mVG4/Dv4dxy90WoGQfBcU+WY0nAV4z4rI0w66Fm5E1cA m8T0TBCeMwB0evdZ/aEasxThmsm/YxafxStgw6aJ8q+LEf3QQJLm39q5x1zp4zsMrSqu QfKmbspcBZM0r1n5tAq+O/CjMTkBajtcd5MjJ7UDHuSLtsmW/f9uQm+UwxsyBUfg1Sr2 xhzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :references:in-reply-to:sensitivity:importance:date:subject:cc:to :from:message-id:mime-version:dkim-signature; bh=GwRobiqv1qHp5RU7uxMCBJnYrMPL3FpHdLHoiVSsaRw=; b=QuUpDOyh5t6XxmumZlE3+ooYq0E/uCmWLel59BDmHZdTN3yR1YqInpnG38t8NjH0Gl 0qoBa+61xtCCBObuZnRFDTx2NWGpTJ1lxtUdvcl8NweFUqf2hG+jKvEIX4iTMmeI4tyq 4fjZH2VeYzX6NRbN+WzjczbUuG8/HHLa6Ack0RUQMydTb55he+2Bx5Pn62k+gWBVEUKX clhGQlt9CUQ59X+IGbm8peq6jyvYfMnyXiSgXRvP0IYiBkiuipOYP/1IhDN7LNOAuXj2 bqvmPlVwDz3NtbKXffS6zoBExRf/TaLsgLQ7+Vt6GdV8sppmCghMcSB0xlBqfYxVdn9G FgeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=Ynmr3saC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a17090322d100b001a654cdcce0si14051017plg.103.2023.04.26.10.38.40; Wed, 26 Apr 2023 10:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=Ynmr3saC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233831AbjDZRcO (ORCPT + 99 others); Wed, 26 Apr 2023 13:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234770AbjDZRcI (ORCPT ); Wed, 26 Apr 2023 13:32:08 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5CABE; Wed, 26 Apr 2023 10:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1682530289; i=frank-w@public-files.de; bh=GwRobiqv1qHp5RU7uxMCBJnYrMPL3FpHdLHoiVSsaRw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Ynmr3saC4iT4xsA2cYSZ05NnIP8XzKG1V0psslk61w24hDwQbkwfcyIvK7GDr4HRm qKnq8HRq+0K0f7auvo5BfThrJfwswJMly83JGZKiGds3/fddIoSAthHgxHonhiqCkr afQsGyGy4PlXj4DAZRWhsDSMzY7+4g77G22J/Q7DjQpdRkeKccVhx9dDXlRs+LoOzK eDU+5AtMTO4BbLnhUYaCY+RoGnseTa/Y8g6fTZrO6ZZTGDxNAGuwcPYE/uk9VTyY5C uHzbI3EsezbKxgI9BI8F5ULgFcaJ6p9SHGtyW0IK2s23Io2dQZDZSoMJO879Q1VIsB H6P8A0wFTkoPQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [217.61.146.19] ([217.61.146.19]) by web-mail.gmx.net (3c-app-gmx-bs05.server.lan [172.19.170.54]) (via HTTP); Wed, 26 Apr 2023 19:31:29 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: =?UTF-8?Q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Aw: Re: [net v2] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging Content-Type: text/plain; charset=UTF-8 Date: Wed, 26 Apr 2023 19:31:29 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <61ea49b7-8a04-214d-ef02-3ef6181619e9@arinc9.com> References: <20230426172153.8352-1-linux@fw-web.de> <61ea49b7-8a04-214d-ef02-3ef6181619e9@arinc9.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail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WNt3QDI6DTgnUhthcRNQTTu+flToTMtZyhW7fxFGEzGDyk1 a5BxqFKBqEu3qnRmQTZ6cgFJviLUZ8GdB73IEI2VQe6j8c2V+rhNpTjr7qhFw7EX/nE+dwnkq XnA5mwqNbm0853lmblTRY7jw== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Gesendet: Mittwoch, 26=2E April 2023 um 19:25 Uhr > Von: "Ar=C4=B1n=C3=A7 =C3=9CNAL" > On 26/04/2023 20:21, Frank Wunderlich wrote: > > From: Felix Fietkau > >=20 > > Through testing I found out that hardware vlan rx offload support seem= s to > > have some hardware issues=2E At least when using multiple MACs and whe= n > > receiving tagged packets on the secondary MAC, the hardware can someti= mes > > start to emit wrong tags on the first MAC as well=2E > >=20 > > In order to avoid such issues, drop the feature configuration and use > > the offload feature only for DSA hardware untagging on MT7621/MT7622 > > devices where this feature works properly=2E > >=20 > > Fixes: 08666cbb7dd5 ("net: ethernet: mtk_eth_soc: add support for conf= iguring vlan rx offload") > > Tested-by: Frank Wunderlich > > Signed-off-by: Felix Fietkau > > Signed-off-by: Frank Wunderlich > > Tested-by: Ar=C4=B1n=C3=A7 =C3=9CNAL >=20 > I'm confused by this=2E What is HW-vlan-untagging, and which SoCs do you= =20 > think this patch would break this feature? How can I utilise this=20 > feature on Linux so I can confirm whether it works or not? the feature itself breaks vlan on mac of bpi-r3 1 mac is connected to switch and uses dsa tags, the other mac is directly = accessible and vlan-tag there is stripped by this feature=2E with this patch i can use vlans on the "standalone" mac again (see tagged = packets incoming)=2E regards Frank