Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp133248pxy; Wed, 21 Apr 2021 21:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzcdbbCWXbg205iIemeGwV09tER82duDRn0E5D4JuttyEr+bZIeanCZt7UC6hhKibYUZKV X-Received: by 2002:a17:906:1986:: with SMTP id g6mr1132591ejd.533.1619064662526; Wed, 21 Apr 2021 21:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619064662; cv=none; d=google.com; s=arc-20160816; b=ruQuzPtp5Zh44ZJ/CwIO4LC7CWEqx7viZJhg6F1hdahqJGgCjDQGC1fn7aj8wvDeOs 0ftI+gWAO/euMrlbA/2OLDcOgR7OYc1UWXZRiy4i5QFvgwxYDVcYDJ1tIwypJodxcwm6 31A084Z232JwVWWWmi7EDBTxb5am3eIDglMxhnLfyhwZ3LLYli8o6crcGDi9EO4p51+N DxwSDeWp+kw9gShg4RYNoAoGr77ROE7kt2sOIHHGaKP8nRyUThZYSyq7UQpDUvbvcVfv WHjTVi95HtjkWcHZz6zMLMs1EOlTk0B4Oc2DkPbYpD2cRtFR+pkqgy/9rOGxA/FKMo4H ifrQ== 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=U9ndYHHujvr1zav297RhllK1op/Od2oHV/TZTHj5aJs=; b=fd6ng+7PnF25ZY1W960leWNAqsCCLG7U4TCcNoLbouvY+dINXuT0wgP3V+/833n8Ko hLYXTDazAZoeAbnU46mHbeD+xicYnymshG2XhngQKrGUcrL3PJgFpDfrcJJxhhQur+Ii 4nCHufkax2+WTcioGHN6nokqpLsi5QONC2g7XRU5xIVi35bCeCUxUNgrYrXlY2TVxskz 7iFM7Hx06ySKUMm95xSSCfEPAAhVzoaHFnLT/hXCpChoG4b/o1M2/EA3cq8zt6MzmQPD u72neme58g0PVKgqiOK6Y2woHuz3tyyEJguoBZL6/FPvWEh7jkqf/OiQC7u3sNHoY8sW E8Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sl0iLZcI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si1085047ejp.353.2021.04.21.21.10.39; Wed, 21 Apr 2021 21:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sl0iLZcI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbhDVEKO (ORCPT + 99 others); Thu, 22 Apr 2021 00:10:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbhDVEKN (ORCPT ); Thu, 22 Apr 2021 00:10:13 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E69C06174A; Wed, 21 Apr 2021 21:09:38 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id y22-20020a17090a8b16b0290150ae1a6d2bso240238pjn.0; Wed, 21 Apr 2021 21:09:38 -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=U9ndYHHujvr1zav297RhllK1op/Od2oHV/TZTHj5aJs=; b=sl0iLZcInFVAtLnDOFrIXPW2KwmX5CPRzW7Wl29+gSD1dN/KP7OeEsfr7anUJpf7IH vtF0SDUkffma2cQ7e5s2QjBXQ4ifU/pbb51BFC4jWaXFMJkFJ8SFDpzSFOrM8m3W+MsP j6T7bed+GaTDS0aytX66+omjj6BTQhy0/BY3ls4tnt7OuMzuI0df8TgVpEtaleixw9wA h1OV++0OVlBnDSRj+QutLb1f5QbZrIP2ZCbTgPb2bZt3Wp+pk47elXdyEPvGq3R36Lzd wQHsI2J/sSgR4V5edR+waJDZnYUinPfbTLA/ZOe4UNohr43LEI8rNzfOzL2aV/lZtSdV etrQ== 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=U9ndYHHujvr1zav297RhllK1op/Od2oHV/TZTHj5aJs=; b=MgRJ4XlXNq2LgRUGepaq91EVwMVP/YIXTmJg2D0cI3+oj828CupJpakYmHDRwHgDR5 CTo4dFNQDWIJQfCtIJmOOORc2H9ObI+TiK484N7xAsWgMP+dK4gmZlgPulSa7r5zTVKK ck0WXT2OcNlN6vNGNaFSrjnO7CCOn+IW/B2oleRenmLnJqEWdmAoXKu/J79EYsUPVLUu SS4z6XPsHFbkLjwQx7kvqZxjZGq4MMf7pmjaOcDPZ3iqKNP6tk+Pdb1TT1Rjrw+6ov/4 JYAEYePViMx7/3qMpiXcc6bmfzqKwDiY+iucoJvNDQpU+N0jjD5suBOcpHwsbq1jt5Mk NAlw== X-Gm-Message-State: AOAM531LOvUZK+QMf9JfNlwsHY0TYoUYlxXyiQJ4F/vX5ZHIF27P/6fd zmGaIEpJQUZxuEgWrgMRFgQ= X-Received: by 2002:a17:90a:7d02:: with SMTP id g2mr7902256pjl.153.1619064577536; Wed, 21 Apr 2021 21:09:37 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id i17sm635354pfd.84.2021.04.21.21.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 21:09:36 -0700 (PDT) From: Ilya Lipnitskiy To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Ilya Lipnitskiy Subject: [PATCH net-next 00/14] mtk_eth_soc: fixes and performance improvements Date: Wed, 21 Apr 2021 21:09:00 -0700 Message-Id: <20210422040914.47788-1-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of these changes come from OpenWrt where they have been present and tested for months. First three patches are bug fixes. The rest are performance improvements. The last patch is a cleanup to use the iopoll.h macro for busy-waiting instead of a custom loop. Source: 770-*.patch at https://git.openwrt.org/?p=openwrt/openwrt.git;a=tree;f=target/linux/generic/pending-5.10;hb=HEAD Felix Fietkau (12): net: ethernet: mtk_eth_soc: fix RX VLAN offload net: ethernet: mtk_eth_soc: unmap RX data before calling build_skb net: ethernet: mtk_eth_soc: use napi_consume_skb net: ethernet: mtk_eth_soc: reduce MDIO bus access latency net: ethernet: mtk_eth_soc: remove unnecessary TX queue stops net: ethernet: mtk_eth_soc: use larger burst size for QDMA TX net: ethernet: mtk_eth_soc: increase DMA ring sizes net: ethernet: mtk_eth_soc: implement dynamic interrupt moderation net: ethernet: mtk_eth_soc: cache HW pointer of last freed TX descriptor net: ethernet: mtk_eth_soc: only read the full RX descriptor if DMA is done net: ethernet: mtk_eth_soc: reduce unnecessary interrupts net: ethernet: mtk_eth_soc: set PPE flow hash as skb hash if present Ilya Lipnitskiy (2): net: ethernet: mtk_eth_soc: fix build_skb cleanup net: ethernet: mtk_eth_soc: use iopoll.h macro for DMA init drivers/net/ethernet/mediatek/Kconfig | 1 + drivers/net/ethernet/mediatek/mtk_eth_soc.c | 228 ++++++++++++++------ drivers/net/ethernet/mediatek/mtk_eth_soc.h | 52 ++++- 3 files changed, 199 insertions(+), 82 deletions(-) -- 2.31.1