From patchwork Thu Apr 15 09:40:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qingfang Deng X-Patchwork-Id: 12204873 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41E29C433B4 for ; Thu, 15 Apr 2021 09:40:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12B11613A9 for ; Thu, 15 Apr 2021 09:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232235AbhDOJkh (ORCPT ); Thu, 15 Apr 2021 05:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbhDOJkg (ORCPT ); Thu, 15 Apr 2021 05:40:36 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03365C061574; Thu, 15 Apr 2021 02:40:14 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id x21-20020a17090a5315b029012c4a622e4aso12375613pjh.2; Thu, 15 Apr 2021 02:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9R3f+tBaKWH0fO58cuLf8hfyC5v10OAnFBeJEdo2ghQ=; b=EDruGia5eWDwRiWxBWtWscWwBptpi2KyFfBdRW5V2J+MzdUshVRG/GtvcSn7ohfpUX bMrKayfjJ4+hwwKu1Xf9Y4rvZB/YWp8XWGsjX2G0HVeo55e89IQpSKJpy8maJHQRXkis avyI2ZKMrjyiW17s796c42qtYIoASEtyJ5GS1w5dqBoSnocjgjwde5+KoXvq3xTwAU/7 U1RdtBQJkBu4ATbXswHdMDsUrrcIkrdlSoUBBYjisCQM62bdOqrvuMKd5136DtZIXyRh z548eQhQQEnV3tMr//u56rX+Iy8PdH2dJY0GVUihRrR1foXeYeolQEZd1txhCx9ZHWpS 3xvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9R3f+tBaKWH0fO58cuLf8hfyC5v10OAnFBeJEdo2ghQ=; b=SWXQyHm+mzef5fL9M1SKkQiPqhFSHeRE7hDoYBtS98NOx3wTflrKbmRXMjtVwBXrK3 5EVscOAinLnziyWr2+hjVNATDk0sKkMed9Mqs+hRyH+hxWMj2oydSZCPn5xpumCLUMvp aFTHOwIRj+lNXZbB8z+V2AxsofgSwA6uj2vtvLEEZM+aWPvv7tt0r91+zLyDZAUcP+J1 47XV/POS0l48BJu27q248hs5CF4Fs+kWydCCo3GLmawzy4JHtDNtD24FHNAJTp/qRmd4 R5jjbDr+t1X3EaE/CM2YqywntmHzsvpqdJYla0dfQy9brUPMttNjA+7/eWD+ITeEspvW 5X5A== X-Gm-Message-State: AOAM533f20nfqSCWu4QaaEKxi/ywOXbcm8p77TBQsSuwa3B8ERwJ+dx1 c7FjlAZ/TW+JocteW3fAvx8= X-Google-Smtp-Source: ABdhPJxJ35eJvUhSAcHylNTFoLVFIlGFbKUNz2CUi/2VuSsIYW9FE/0WXaScxDI4AjHU7dmZlBEZJA== X-Received: by 2002:a17:90a:6c82:: with SMTP id y2mr2929579pjj.142.1618479613629; Thu, 15 Apr 2021 02:40:13 -0700 (PDT) Received: from localhost.localdomain ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id c4sm834754pfb.94.2021.04.15.02.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 02:40:12 -0700 (PDT) From: DENG Qingfang To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Jakub Kicinski , Matthias Brugger , Pablo Neira Ayuso , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Frank Wunderlich , Alex Ryabchenko Subject: [PATCH net-next] net: ethernet: mediatek: fix typo in offload code Date: Thu, 15 Apr 2021 17:40:05 +0800 Message-Id: <20210415094005.2673-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org .key_offset was assigned to .head_offset instead. Fix the typo. Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support") Signed-off-by: DENG Qingfang --- drivers/net/ethernet/mediatek/mtk_ppe_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c index 4975106fbc42..f47f319f3ae0 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c @@ -43,7 +43,7 @@ struct mtk_flow_entry { static const struct rhashtable_params mtk_flow_ht_params = { .head_offset = offsetof(struct mtk_flow_entry, node), - .head_offset = offsetof(struct mtk_flow_entry, cookie), + .key_offset = offsetof(struct mtk_flow_entry, cookie), .key_len = sizeof(unsigned long), .automatic_shrinking = true, };