Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2258321rwb; Mon, 7 Nov 2022 11:03:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM4fug54Kmdk/eCclOHDd4fKBLyNUdbCXAY4KqEhghejCtzHWcaHsocaUNACHTVG4Wlcn7Ie X-Received: by 2002:a63:e343:0:b0:470:3be8:50c7 with SMTP id o3-20020a63e343000000b004703be850c7mr15512224pgj.336.1667847808746; Mon, 07 Nov 2022 11:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667847808; cv=none; d=google.com; s=arc-20160816; b=CRSMPTRGLwFgtdNLY7LyHh/vuk+SmVAaYviq+VWRbYYY+Fj3F9OeolF5eEx6Kl1j++ MUXsbk9VRRC7VKUo+vEb82lrBPzP1tUpGH/4EMFWlA29y32FcIxvuSh+j35LBYDpZddj 5bL9nXoVCgw+nF5PpAvAIBpHfBd5AXw+Dag/838bwDg6PjXSN2UUd7/S/2g6zSB3wwhz 0/kNKfGC9u/2CXFGRgAxmd8q50DSA37iYKnPec+fMLqef2qmGQaxjogbmhPsjlaK4/x9 SXEYq723raEUj2CmoukbNYdbHZt7YvI+MCVeMBUUAGiO+VaAw1Gk2SFV77HBFhll+hGS ehnA== 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=YLg5pPiZ4SgYBGCUeq6yCCCPL/wr+lr6XSx1WcECfek=; b=pz3Q0kJDmTXL8qNdIjpSeXEwJIEWqoZR7NUWWI9Vuc5q4ldCCvpxTX0frfllWgtCA5 R3hPO7tJ3G6aCB4hDO+HtXftj36044dVjHQP7ilX45wF3DoAv7oe1CEKCnjQlLTYcO0m WxFC9nJG1hmJNBW/Mup1wPui04GtuyDwBYupIzZz8gIPWJui4P/EBjRh2jEbcXFAXtRN Koq3uXCW76czd1QjAS5tOwvncD2jYGDMaFKOajafiOBxawLzfj/xjPIg/pCDrTvWYmmB L1ThrhCkdo7P87PLse3N90lAt7tc5HZ7OHal9YzlzLmFW8GnQ7jOceKGOknLTUuec9MP cmsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=WvQqD0JZ; 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 mu10-20020a17090b388a00b00203246e4383si11583494pjb.145.2022.11.07.11.03.16; Mon, 07 Nov 2022 11:03:28 -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=WvQqD0JZ; 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 S233075AbiKGSzi (ORCPT + 92 others); Mon, 7 Nov 2022 13:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233009AbiKGSzf (ORCPT ); Mon, 7 Nov 2022 13:55:35 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2BE31139; Mon, 7 Nov 2022 10:55:34 -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=YLg5pPiZ4SgYBGCUeq6yCCCPL/wr+lr6XSx1WcECfek=; b=WvQqD0JZD+cMdUTfMcVWB+LWE1 ZWQnp0lAdw3j1H4rZxowkxQDZLm3kjQOSPCFhPuNjFYi5DtCBfXlU2P3X/FZxGiJkQH58cgLJEUmW 8rnGn2i110PtwhvyiByPWYQuvKPyVse2oAq9MrCU3n1u+B0O2VO8UBx7Qq9RKDwogaCE=; Received: from p200300daa72ee1007849d74f78949f6c.dip0.t-ipconnect.de ([2003:da:a72e:e100:7849:d74f:7894:9f6c] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1os7H8-000LCc-LA; Mon, 07 Nov 2022 19:55:14 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/14] net: ethernet: mtk_eth_soc: account for vlan in rx header length Date: Mon, 7 Nov 2022 19:54:39 +0100 Message-Id: <20221107185452.90711-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 This may be needed for correct MTU settings on devices using DSA 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 589f27ddc401..dcf2a0d5da33 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -29,7 +29,7 @@ #define MTK_TX_DMA_BUF_LEN_V2 0xffff #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_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