Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7122735rwb; Wed, 23 Nov 2022 02:26:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qGatSniZPhaE+kInLulwHPET5oqLYNed1lGtaXue9h+4gpYt/JRyOz6+KUDcVKJSN4l4+ X-Received: by 2002:a17:906:ce2d:b0:7ba:b9a:5e7e with SMTP id sd13-20020a170906ce2d00b007ba0b9a5e7emr1442421ejb.735.1669199206670; Wed, 23 Nov 2022 02:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669199206; cv=none; d=google.com; s=arc-20160816; b=id9EpE6McMiWrxUlnmtTVccT+EFttDbnmYpxlU8qaABxypFMmS+0u1mdvMxLcl5sqB 6hO/Xdj/3HsXkXQGZB3wm5Qc2J9GVDSw/JNyhacGLEuK37TOTol6hEUliWfWTVzIitT1 m5JFtd35b2vTHsb93nRFAONg23pPOxP2dQp5hLWGNygEcEx6Nrc4hRBxut3ec4OEn1RZ HZUh/zmRxmqKKqE4I3PqC4G0o/M33HUuE+sWrh01mI09SVpVIxatseYuElN5Etptq1ZQ UxgKl/4vGBBKuDmE51IMb6AJOTKhmrAwNTQ/Pvlc4f/Nh+Dv3tU/JNlCGDeiVhqDBbNB D9ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6uGEkYiiDNJdirEp88wlQrzHeOKWYnyUx0/Iz4Kx7zs=; b=Q5OLoNTKdzAAQmr5GzUEKdBEPt3fsKPYZSNWx5njYQ1oIHIiJJlNAdhOShCY8yuMtE nTdv8ljWEo1Qa5xId9QORC0lsjPLAyJEs0QdY3E5qgd0a2yXMAWhs2CO1yKEImEyWkYB ALL4xZ3p8C3j3BYffGLR7c59IJzz4DnJhYSAAWsN54/EGGYOoSD7wx7E3O6xi23JCxPv 201tncThMmrUTq0TswmJ11tPT77idR5YHrIccjhBLwm1KYKELzImaGX/4In98PxdMW/6 wf08sHLghz/IiMbpvYhH5wfi9uQz9K3cE7Pv9/FpT4TPk60ufP376h0KkZmUNKRVM9O6 oJBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=aH9ewe1z; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a056402240700b00458cdba7a90si536995eda.471.2022.11.23.02.26.24; Wed, 23 Nov 2022 02:26:46 -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=fail header.i=@nbd.name header.s=20160729 header.b=aH9ewe1z; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237149AbiKWKJW (ORCPT + 89 others); Wed, 23 Nov 2022 05:09:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236856AbiKWKIo (ORCPT ); Wed, 23 Nov 2022 05:08:44 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8047AE2E; Wed, 23 Nov 2022 01:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6uGEkYiiDNJdirEp88wlQrzHeOKWYnyUx0/Iz4Kx7zs=; b=aH9ewe1zvFWVb4tslzb7s84Um4 d7ns8MepdyUaAsbWXaxhzralIQRPE2yKshe1mJQHAUbBYjwf4pRPXOg7AjSc4eMYWtUf8PP9+k5ux q4rkshNyg0LcPJ5s4z7P16utRWFLRIeidovjf4NK//Mu2Vn93gMxy5WUnqSFmRkmlDI4=; Received: from p200300daa7225c0894d890dd9e4669b3.dip0.t-ipconnect.de ([2003:da:a722:5c08:94d8:90dd:9e46:69b3] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1oxmVv-003vzk-My; Wed, 23 Nov 2022 10:57:55 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger Cc: Vladimir Oltean , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] net: ethernet: mtk_eth_soc: account for vlan in rx header length Date: Wed, 23 Nov 2022 10:57:50 +0100 Message-Id: <20221123095754.36821-1-nbd@nbd.name> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 The network stack assumes that devices can handle an extra VLAN tag without increasing the MTU Reviewed-by: Vladimir Oltean Signed-off-by: Felix Fietkau --- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index 7ca806b4de10..a553265c10de 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -34,7 +34,7 @@ #define MTK_QDMA_RING_SIZE 2048 #define MTK_DMA_SIZE 512 #define MTK_MAC_COUNT 2 -#define MTK_RX_ETH_HLEN (ETH_HLEN + ETH_FCS_LEN) +#define MTK_RX_ETH_HLEN (VLAN_ETH_HLEN + ETH_FCS_LEN) #define MTK_RX_HLEN (NET_SKB_PAD + MTK_RX_ETH_HLEN + NET_IP_ALIGN) #define MTK_DMA_DUMMY_DESC 0xffffffff #define MTK_DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | \ -- 2.38.1