Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1138987rwr; Wed, 26 Apr 2023 10:32:40 -0700 (PDT) X-Google-Smtp-Source: AKy350aigT/QWrjjXJ3a/mlpGrqfIzPAz24qUYQVw8MAEEwqgA7LX7pwCIJkoxh2GxHjJgqISoTt X-Received: by 2002:a17:902:ead2:b0:1a4:fc40:bf04 with SMTP id p18-20020a170902ead200b001a4fc40bf04mr21070250pld.27.1682530360547; Wed, 26 Apr 2023 10:32:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682530360; cv=pass; d=google.com; s=arc-20160816; b=DLIhDZ4Jt8KIdjdNCQF2+Z/0qos0+qoqvX/9bdQeL/b0vukKjRLCfGcOTasOypQV5Z l4bpR38pXqqSGRlIO6MD6oM3/sLWBK/PO0Ukge18hRtdZdmxTEPUXyk5h1aMHuF18PoR +B29JoE8nqBRi11XV1vbS6avYVSj9OtPCA+TQWpM/Z2WARZNQq2iy6PJz9+Sv3B3SpcH P43dzJRjKWJLtV97zMK4+ZxkuTOSRQofTgvcWYfNnHl3IL8wF/DvKU7F9LGKH/yD7DFI MqK8UvBkCQILsPTo/wxMqOAo7z5DZH5Kuv5VVSPNv3FMhNsphRPDjryT0wnusSzldrIz F5/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RT/owfhTxJeu2QuP6rH9YfYIno23f9H7utc/KQpP2W4=; b=IjvrE6OCovBOc7mNL4zj7P4V8A27HY6UhZhkiRu4d0M5OFzW1c/nKR8HwsTUehgVaS CkPMsNgn/8o/qfsvPkqB9/wxvbeHFlkYoTn7m21DTc4ZtlXkhXIwgsFNvIh8u6FHGcNu luLOinc7/ixZIA+gq+tjw3TgPoeKSohGaMh2N8sn7qm/QT9oOAxY6953GaGW+f5ffKSx s2sFT0QPMudpLazKaxnLAedG3zicexrnc41+QlFCZn/ceFg5Tj34NKJ/w9zEpjzsQXZP 3QkoDIN1kNXB0i2Gp8aKXr71cwX7UYn3GAOk7nXp6JaVj3O+1kvgSPgCRMplCYvrv/em iErw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=Fo0RE1Cc; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 w8-20020a1709026f0800b001a963979936si9795428plk.153.2023.04.26.10.32.27; Wed, 26 Apr 2023 10:32:40 -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=@arinc9.com header.s=zmail header.b=Fo0RE1Cc; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 S238490AbjDZR0y (ORCPT + 99 others); Wed, 26 Apr 2023 13:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238345AbjDZR0t (ORCPT ); Wed, 26 Apr 2023 13:26:49 -0400 Received: from sender3-op-o19.zoho.com (sender3-op-o19.zoho.com [136.143.184.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C1A7A98; Wed, 26 Apr 2023 10:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682529964; cv=none; d=zohomail.com; s=zohoarc; b=kaxaqzuagDTmsGBF7wJshv8q1kJ8czNH1mwRTjieorUoa+YQQ2NiMBzZ8binM9p4cipWt36bZfg2FP8qPTYIhDSih5ztveZJTvQXwyHSoth9R+vxMto+e/4iBp76k8N+nNlaz89BHulZwOPlpKQbvlugki1kMIBsTSTW0jBXkqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682529964; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=RT/owfhTxJeu2QuP6rH9YfYIno23f9H7utc/KQpP2W4=; b=CqLik37rZc5tAltgBP7aBXSLtCk5LDYyb3QtukTCLcOyvFYPZEx9L8Tg+uqQCV1RpJAjDB5cVXUqHsWu8YjKS/SvlcQND9eCbu/64JVMCQ2NdLRO5tdPTwb/SSrsdgyq548ZwijLF4Qw30j2oxDE1rgaCw89CfdPthAl3QZYVYA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1682529964; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=RT/owfhTxJeu2QuP6rH9YfYIno23f9H7utc/KQpP2W4=; b=Fo0RE1Cci2Ywwtk/6uu30TkSUE3fZnQFb47MADPf+iIr2YYNV8J3GsyDDhCwfvYU bK1BvGatid0y/QCgjXexl8UvWMeu5pEp52dLACqzoVAoT8vsTIgPdJhOoc1ikInsyjZ 79E9JdPSWNiQxDRAgnRMG1eA1HDEsEGzd1LioZjY= Received: from [10.10.10.3] (149.91.1.15 [149.91.1.15]) by mx.zohomail.com with SMTPS id 1682529963036952.8466533209543; Wed, 26 Apr 2023 10:26:03 -0700 (PDT) Message-ID: <61ea49b7-8a04-214d-ef02-3ef6181619e9@arinc9.com> Date: Wed, 26 Apr 2023 20:25:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [net v2] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging To: Frank Wunderlich , linux-mediatek@lists.infradead.org Cc: 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, Frank Wunderlich References: <20230426172153.8352-1-linux@fw-web.de> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230426172153.8352-1-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 26/04/2023 20:21, Frank Wunderlich wrote: > From: Felix Fietkau > > 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 where this feature works properly. > > Fixes: 08666cbb7dd5 ("net: ethernet: mtk_eth_soc: add support for configuring vlan rx offload") > Tested-by: Frank Wunderlich > Signed-off-by: Felix Fietkau > Signed-off-by: Frank Wunderlich > Tested-by: Arınç ÜNAL > --- > v2: > - changed commit message to drop "only one MAC used" phrase based on > Arincs comments > - fixed too long line in commit description and add empty line after > declaration > - add fixes tag > > used felix Patch as base and ported up to 6.3-rc6 > > it basicly reverts changes from vladimirs patch > > 1a3245fe0cf8 net: ethernet: mtk_eth_soc: fix DSA TX tag hwaccel for switch port 0 > > tested this on bananapi-r3 on non-dsa gmac1 and dsa eth0 (wan). > on both vlan is working, but maybe it breaks HW-vlan-untagging I'm confused by this. What is HW-vlan-untagging, and which SoCs do you think this patch would break this feature? How can I utilise this feature on Linux so I can confirm whether it works or not? Arınç