From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D8073D0916; Sun, 3 May 2026 16:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777827203; cv=none; b=ahm6HY8XwTmzk5/9uGwI+a+KFj0stDLAH/9Dc0n65gxJXIeNULLdwBujiZ4WkXECRN0+/ww5fuxLrBpwipD4Mqvg0v4ITqa0SaU++4aYwjKtpAu1vkdwncsxnEHqJXOSc2FD75XICxyWNbs3X1843R5hNQGsrjgiR46oMe7W76s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777827203; c=relaxed/simple; bh=BSvgdT7txHCvK1q6aGTFYuPGy+zTy0egDi6Da4ZgJPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lJQz6D7GYIihssPXZVhSi1xDHb1E9EPHtd+lu/YkJYMgC3NDc5WVM/gp70NzBAckMIJHHRT/OpIO2M0C52sWdOMOmmtapJBrNGjjDSbmWjEvKTxZ7c1DrV3fkGfXCZqShKDAPWshc7/cdlHA9eWThuqaRJOrNZCQ1S6NeMn9u5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id A2E835FAA9; Sun, 3 May 2026 16:43:22 +0000 (UTC) Received: from frank-u24.. (fttx-pool-217.61.145.231.bambit.de [217.61.145.231]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 599771226B5; Sun, 3 May 2026 16:43:22 +0000 (UTC) From: Frank Wunderlich To: Felix Fietkau , Lorenzo Bianconi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: Frank Wunderlich , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Mason Chang , Daniel Golle Subject: [net-next v6 0/3] Add RSS and LRO support Date: Sun, 3 May 2026 18:43:05 +0200 Message-ID: <20260503164312.82699-1-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Frank Wunderlich This series add RSS and LRO hardware acceleration for terminating traffic on MT798x. patches are upported from mtk SDK: - https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/refs/heads/master/master/files/target/linux/mediatek/patches-6.12/999-eth-08-mtk_eth_soc-add-register-definitions-for-rss-lro-reg.patch - https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/refs/heads/master/master/files/target/linux/mediatek/patches-6.12/999-eth-09-mtk_eth_soc-add-rss-support.patch - https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/refs/heads/master/master/files/target/linux/mediatek/patches-6.12/999-eth-10-mtk_eth_soc-add-hw-lro-support.patch with additional fixes changes: v6: - no RFC - rebase on netnext (7.1-rc1) - drop unused MTK_CTRL_DW0_SDL_MASK - e33bd8dd7f1f ("net: mediatek: convert to use .get_rx_ring_count") moved ETHTOOL_GRXRINGS handling from mtk_get_rxnfc to mtk_get_rx_ring_count move changes to this new function too - fix some Macro argument '...' may be better as '(...)' to avoid precedence issues v5: - fix too long lines after macro changes reported by checkpatch v4: - drop unrelated file - rss-changes suggested by andrew - fix MTK_HW_LRO_RING_NUM macro (add eth) - fix MTK_LRO_CTRL_DW[123]_CFG (add reg_map param) - fix MTK_RX_DONE_INT (add eth param) - fix lro reverse christmas tree and LRO params suggested by andrew - drop mtk_hwlro_stats_ebl and unused IS_HW_LRO_RING (only used in properitary debugfs) v3: - readded the change dropped in v2 because it was a fix for getting RSS working on mt7986 - changes requested by jakub - reworked coverletter (dropped instructions for configuration) - name all PDMA-IRQ the same way - retested on - BPI-R3/mt7986 (RSS needs to be enabled) - BPI-R4/mt7988 - BPI-R64/mt7622 and BPI-R2/mt7623 for not breaking network functionality v2: - drop wrong change (MTK_CDMP_IG_CTRL is only netsys v1) - Fix immutable string IRQ setup (thx to Emilia Schotte) - drop links to 6.6 patches/commits in sdk in comments Mason Chang (3): net: ethernet: mtk_eth_soc: Add register definitions for RSS and LRO net: ethernet: mtk_eth_soc: Add RSS support net: ethernet: mtk_eth_soc: Add LRO support drivers/net/ethernet/mediatek/mtk_eth_soc.c | 810 ++++++++++++++++---- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 172 +++-- 2 files changed, 776 insertions(+), 206 deletions(-) -- 2.43.0