From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 AA2BC3161AD; Wed, 6 May 2026 19:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778095706; cv=none; b=Aaf+cNxgjAVEWf09GzTQjBXalLKlSrxCX22h+ZM0xVwyaEjbP8ZQcAoxwCt4OfDY1hwoliapH66LFv7WbMDv7sarVGhTJUTx86NnQsobIk4CmL8Kyv+iEXTURUoYxYm55rkOcEPMKVpMaHRsHh4P/WXmmtxmgrpENmFD3tFOiHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778095706; c=relaxed/simple; bh=VvpoccZBm35SIHQhftnGA1CPsO/DOviNfNPYu7QPfuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hVgPGsIC12K2iIdtDL77gUe7cSBTbsbF9HUwu+fC4o3tDKXyBIy02eDyi/u05s8yLaldc12CUTh0SeTr6zJraiZ9dyZW9p+kx4RSoyznWjnfQGFEvheQWzIw/fcj1Kdc7EmQ3HLnIeZ2gxWE1Wb7UAUQdEmtW4KOj1iqmB8pMqM= 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; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=icYpUfj2; arc=none smtp.client-ip=134.0.28.11 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="icYpUfj2" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id 0321B40A12; Wed, 6 May 2026 19:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=routing; t=1778095696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pGY2haGv8b75oYTLHj6+B0R/plUm275hXnrLqKepFuo=; b=icYpUfj2T1Z9IU6F8HCGW8yRTNAPPhSOZSrsu4IKoPa3irT2ufHQWrCYQ9cIPp7cE3Xc8Z HwT8ASoJAwcoX+QsY6Tap1VY/GjKa7IaLBuv/WLjwaSyFOuAa4IwYLPaJF1FHeKMLEFndO GbgXRKIhHex5giGyI9Vmm5GuGhqIVlA= Received: from frank-u24.. (unknown [217.61.157.0]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id B840B1225E7; Wed, 6 May 2026 19:28:15 +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 v7 0/3] Add RSS and LRO support Date: Wed, 6 May 2026 21:28:00 +0200 Message-ID: <20260506192806.143725-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: v7: - fix u32 vs. be32 reported by patchwork check - add L4 PSH check https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/7521c42b0bd5be20d52e20b110daea8c756fc069%5E%21/#F1 - Add HW LRO max 4-depth VLAN support including switch special tag. https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/35490cec6a2e5982532935fb0a1c884f7c4efdb0%5E%21/#F2 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 | 816 ++++++++++++++++---- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 175 +++-- 2 files changed, 785 insertions(+), 206 deletions(-) -- 2.43.0