Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7373052rwl; Fri, 30 Dec 2022 07:36:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPR42IRRRfi5P7I8x0h+ZeWJlG3xN+ejXiX3YHRTFAD1NGcjH2jAPNdzt8r4CMOYvFr0wf X-Received: by 2002:a05:6a20:7faa:b0:b3:8808:b93d with SMTP id d42-20020a056a207faa00b000b38808b93dmr19442639pzj.62.1672414584289; Fri, 30 Dec 2022 07:36:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672414584; cv=none; d=google.com; s=arc-20160816; b=TFQo0i/x4CDXb3+g5YV1OicN0AsSttRHvBde5gcMKOVm/UTGSkDgT6TqlT9ts5ujcg PLjULyW5BKnzoPrTivQdshRiEobqqzqM1ka/DrTjI34w1Lf8nx/csJyx8zPjyBwvoz/F VCCgolJHIvlmLiKQTTApQzewa1ykpxXHTViIMDGJX1JokDeTVl//XTSbQuEgVjZGJmMp qWcAcZkGU12W1LgreR60+Rh1wJRXZnV7otzRulCajrWQcTsn3izFK2fPTlYRHIjPkScJ ifL4kb4N8xYHH3fzSDvuXQzQCpPE6vo1JkxZ7eWKKob8g6HQ6wfAI7LWGpvstyAkBoz9 raVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :references:in-reply-to:sensitivity:importance:date:subject:cc:to :from:message-id:mime-version:dkim-signature; bh=t2cy/1OrKEt2n+KbnpUgc04/7RMy8+Ja+8GEsOnGjYA=; b=CdoCpx7n+ntR+2iHfGNEpIdxyqy6nuixI5+66efZTeQXVv2qHtzhtOMAAB7szEiPDI 973nRkjU+NBzy3V0oAJBzCCk5FOZeqr5gwOPiUGvLXBjwY4Hr2HENi+rJYlIs+h9R6Qg 7acdLk3XFaFchCHG/f8Y18miJYyQb4e7ZK/S/7ZEVZJHZAK2wuoCwaNqOn5YNaJkeN7I haUuvZngjer4AxUSsNiX1ggMp8dGQwVR2w+UJNm436TA1DKy9VA8aCvNDA1hv7VndlDj XPT2Sbm3Jul8uM+EV6y3EXqLgKB6JRogxT6G8YaE4/7CdPMO70t2za85ET/wd8mM9RSn gSbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=eNpLyuzV; 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 m4-20020a6562c4000000b0046feca13e25si21440839pgv.68.2022.12.30.07.36.14; Fri, 30 Dec 2022 07:36:24 -0800 (PST) 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=eNpLyuzV; 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 S235123AbiL3Pdv (ORCPT + 64 others); Fri, 30 Dec 2022 10:33:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235150AbiL3Pdr (ORCPT ); Fri, 30 Dec 2022 10:33:47 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980DF1B1F7; Fri, 30 Dec 2022 07:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1672414384; bh=QZE1xIk/afkLkABE1owXrClFFZNx+podxLmjY101Hfk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=eNpLyuzVNMFXZMewJo8kzGCwOGNZvNglAloAWOco3CBBzSPZZztz+c61Ds8igR8cu MMwsZFQ0NBvivkqTzJcBr2pSZEK5HSVsRETf7n8NSYI7BZLCeSdowIwagcNgfINKLO mXcChc8mWMO1j+mSlZ54VWq9DUKi6KqeGndN6YkYNyUwpaaZxHT/NijkCCiCy4A5mQ KGb6+CeGycQWk6pCBVJl8ta3jycju7+MURcevDqjX8J7BsD1bvvCZ+wuNQ9bqFfyIt vyj1hyhlm4N/ChyDxFRj5jfYDoca8aTpgn/TcCAh5aJEipQo7S6ttUfQY+BH1A385p HkbLUYMZ50zSQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [217.61.149.221] ([217.61.149.221]) by web-mail.gmx.net (3c-app-gmx-bap18.server.lan [172.19.172.88]) (via HTTP); Fri, 30 Dec 2022 16:33:04 +0100 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Felix Fietkau Cc: netdev@vger.kernel.org, John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Russell King , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Aw: Re: Re: [PATCH net v3 4/5] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging Content-Type: text/plain; charset=UTF-8 Date: Fri, 30 Dec 2022 16:33:04 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: <20221230073145.53386-1-nbd@nbd.name> <20221230073145.53386-4-nbd@nbd.name> <82821d48-9259-9508-cc80-fc07f4d3ba14@nbd.name> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:XFhZcwksdIibuOGNbKGPYa7y7vlWTRF7XmjcL9Tj/sqTwG5Lp8E2VOOkpLaaUEdHEDrlW 96f0LKzWfYZHUzhiX2p+ht+6iwzS1wP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qo5XwaTyYVCHVwg== Content-Transfer-Encoding: quoted-printable 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 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 Hi > Gesendet: Freitag, 30. Dezember 2022 um 15:58 Uhr > Von: "Felix Fietkau" > Does this help? > --- > --- a/net/dsa/tag_mtk.c > +++ b/net/dsa/tag_mtk.c > @@ -25,6 +25,14 @@ static struct sk_buff *mtk_tag_xmit(stru > u8 xmit_tpid; > u8 *mtk_tag; > > + /* The Ethernet switch we are interfaced with needs packets to be at > + * least 64 bytes (including FCS) otherwise their padding might be > + * corrupted. With tags enabled, we need to make sure that packets are > + * at least 68 bytes (including FCS and tag). > + */ > + if (__skb_put_padto(skb, ETH_ZLEN + MTK_HDR_LEN, false)) > + return NULL; > + > /* Build the special tag after the MAC Source Address. If VLAN header > * is present, it's required that VLAN header and special tag is > * being combined. Only in this way we can allow the switch can parse no, i verified my vlan-setup ist right by adding additional device (my r2)= into the same 2 vlans. My Laptop can ping both vlans of R2, but on r3/mt7= 986 only vlan500 (on eth1) works, not 600 on wan-port of mt7986. see arp going out on r3, but not received in the other side (laptop/r2)...= . any debug i can add for this? ethtool does not show stats for vlans, for w= an i see no CRC/drops regards Frank