🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13664

[PATCH net-next 0/2] net: stmmac: dwmac-sun8i: Jumbo frames and an RX_TH fix

#13664
From: Arun Iyengar via B4 Relay
Date: Tue, 10 Nov 2026 06:03
41 lines
12195 bytes
The sun8i EMAC advertises a maximum MTU of 3712, but drops every frame
longer than 1518 bytes. Patch 2 sets the receiver's jumbo frame enable
bit and limits the MTU to what fits in one normal descriptor buffer
(2018). Patch 1 corrects two swapped RX threshold values; it has no
effect on current configurations, hence no Fixes: tag.

Tested on an Orange Pi Zero2 (H616, RTL8211F over RGMII) at 1 Gbit/s,
with a 7.3 kernel carrying both patches:
- MTU 2000 and 2018: pings with DF set up to the full MTU pass in both
  directions, iperf3 gives 955 Mbit/s to the board and 905 Mbit/s from
  it, and the rx_length and rx_crc_errors counters stay at 0.
- Setting MTU 2019 is refused.
- At MTU 1500, a 90 minute run (bulk transfers up to 256 MiB both ways,
  iperf3 853/873 Mbit/s, 1000 pings each of 56, 1472 and 8000 bytes)
  had no loss and no new error counters.

In that 7.3 kernel, frames longer than 2044 bytes were dropped by a
local norm_desc change; v7.4-rc2 does the same through commit
834ec9530832 ("net: stmmac: drop split frames on AF_XDP zero-copy RX"),
which patch 2 now relies on.

These patches were developed with Claude (Anthropic) as a coding
assistant. It investigated the problem and wrote the code and the commit
messages; I reviewed them, and they were tested on an Orange Pi Zero2
(H616) as described above.

---
Arun Iyengar (2):
      net: stmmac: dwmac-sun8i: Fix the RX_TH threshold encoding
      net: stmmac: dwmac-sun8i: Enable jumbo frames up to MTU 2018

 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 29 +++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)
---
base-commit: d26955e57475434b59d43ba372b2a50d33d5e0ed
change-id: 20261110-sun8i-emac-jumbo-4839f984a6a9

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>
Technical Details
Message-ID: <20261110-sun8i-emac-jumbo-v1-0-84bf00e9ffa3@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359897-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359897-linux-kernel-netdev=dewy.ru
From: devnull+aiyengar1990.gmail.com@kernel.org (Arun Iyengar via B4 Relay)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/2] net: stmmac: dwmac-sun8i: Jumbo frames and an RX_TH fix
Date: Tue, 10 Nov 2026 06:03:34 +0000
Organization: Usenet Network
Message-ID: <20261110-sun8i-emac-jumbo-v1-0-84bf00e9ffa3@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network; logging-data="534781"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GXckiUBsE0pA4c2ngnlpAOHf/MQ= sha256:T2+ZRdYfc0J9aej1VPnzm6eNwz9dZ5vbWZy07S/We+A= sha1:H8QsrfFSOXpV1ID/I+8Jov9LJ1E= sha256:3Hr9aR7O1Qk977FGx4iTYsbDbsvFvmo4kRVUE/1eJ2U=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id F0465113A47; Tue, 10 Nov 2026 09:07:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.051
X-Spam-Status: No, score=-2.051 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLYTO_END_DIGIT=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id noXM87nC8il4; Tue, 10 Nov 2026 09:07:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359897-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B7879113A35; Tue, 10 Nov 2026 09:06:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 5426EC2877; Tue, 10 Nov 2026 06:03:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794290622; b=zwPk06VmvfhSfJnltyWLXL1uRJ4tClEKdv14iEgdSpP1CUgvsgbNGw37VBHKnHRGy5n2 1xosZWp7S/mNnx9xVe4FvfUKjfvnq39+97jVXmJXvoeRStT9UIcVJXU5UCHz2Nvh/9TlZ F8zXJ7M8zO+94CiasCvKCAVEP7UW6NUM5iybcVjDhNX21oNUkXCNcRi97FbSXK1yjw89a Zu6Dbyw0B2d0mZVlvFxic1w49W+H3WCHJZ6Ltz+fRn1Oq+Agk9gCYYlcXq2Ddf796UnRe 7XIQeGQIvYL0jl8GVDa6rtdFzaOqsGTADdh+HYO+x9ZjmOaorWN56Yg09hif3u1U4PA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794290622; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=qpLwxWpXV7jpyie/JzY05PkW7uqT2gzRyZBD+Zmwxw8=; b=LamnBNB8Cb2rZWGj7E4xwfz1QHF2ReSFvqgUZ3giIWffskCUOx5ztQrOoBlU0MJY6wZy YYtwBCeO4/wKEIheeVJm8vYdyg+Ekugy1ZMQnS9+P8m6dudVvbWd/Ir2VsmVpVPawxzqK 2pG8/KTTpATZ1OP3UTTOJNaNQkBbJ0Ic1Ct/6/1Unjm4xkpby7kf2pTMkUOhskDeoVBVD JsOaIjmAXaWytS420+EYTZWSaBKudNWBcIDwutP8VhbecVsc5HK0yQB6B4d6ifT7La9j3 4455btPTFRa2fWHmZgvitfVkKQiGnuK3R4IH09ATwYiMDyt2ZX0+eyfVdPPrDkBNKZQ==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KVKQkHtN; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E140606A33E; Tue, 10 Nov 2026 06:03:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KVKQkHtN
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794290616; b=k/efCzdcVNq3nB74ogXiyu0Mrq8YbZhpYNL+Em785u6VDPJnIdGvNgIhjtX1KsKB9I2t Q48lAXSSU9W8AOaQPjz+UJ+gYmHHY5IlomUjNc5wJL/5rrWIcr7/1gdLA4oO59fj+1htP cV9omQWFk2W/y1N/x/HgL0rBl2Ti08xQ63V4Hv+fVJbdD4zjLd/VwjuGx5UMZF8J4Fh0Z mFaIEvh/SF8Kzu86Qt70ryIZkyKISm1Pn4oBybOG/ebK5I094X+ZSh7Su5qAoDdMQeBpv cu49ztuoOAK91A+WbabHLCs0Ro6+NsPutvsDLvLkzkL8oB0P/UZn5ieniO6rkMFKnDw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794290616; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=qpLwxWpXV7jpyie/JzY05PkW7uqT2gzRyZBD+Zmwxw8=; b=u3DZMGGGphiJhYzIn/QFECiw+t+ODKq9rEhOxpGf7VIxXyMlHxDaWU+YEcx4x2qISWUv lMUgHB8Pytasg+x7GNWGOFbpRC3WxCuMkDxorO+CGwNl0KRSXugZZ0yB5O8ExRJZq3tde Xc5l1UYBgUr2rsOJVrR+Y3c6xA9nOFVB4Hd5FhdnYOIwt5zcRIUKEpQeMi7L1hzBkfYjT +7+KAEWJRwxU9Rh5sJbXegiXlNFUrFtSm6qfFHQGDRfTCGiRuaFeMxMhii3PSEw1wj1Ip e2kdty7YIg1zx4hOy5pojnsSCkVpZGsbftHq6hHmKLQOa90G4hp6zKgiGgdvzyuLOaw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KVKQkHtN; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DE99606A31C; Tue, 10 Nov 2026 06:03:36 +0000 (UTC)
X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77
X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794290616; b=we9oAa1WP6+ol9Hf3MU5HqBn1YrEZ3yGYsZTx902n9bmihz4PJTsdeH/bFCT7BmoC4JV fTDJbxS3KIIh9fSvjZTe0JOLeObsMxzzk19AGKzB/v+bBefUBIZkpzQeqYXLl5+zom/qm jeUhFS+T5rW82/L6N7nlvZiX/qUsBYzkYu5sYcalJu9T8KmCMrF0RZd3E5QWx6l+LdXxG VYM6chfl3Ye719cwaWYDNLPE3ZG9eN1G7pJZ5OzKSfPDHc9JlmnRaYFr/DmGRHuFCriWk 2Gbl7EGNlTx8cjSYYIHuofk0Rf4jDZCXTB0e+JDFPpy9T62Wo36jdS+ldI9P4QHSmtg==
X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794290616; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=qpLwxWpXV7jpyie/JzY05PkW7uqT2gzRyZBD+Zmwxw8=; b=KDo0dJcWLOhk5fDcE9lkIK7pNfOU1YeGoaQf7H8XSvrJq9AUwJdQssHeHW0+qU8RiqP3 VmfBFHNrte2NfN31/7WOlY9UOmzJ7XpM8otqQEG7VVeIO9kAalYAw0Fig2ITlu/IJPe9a U0E5HPnEk+FARZ/dzBFCk0gd4gDm4I3yA62oZEJUVjHU3YbQr7PCr6yQsWefYQ6bnQOZA 109oCIKY/3BxJHalPYgreoMiyEScB3lcnfC2yyzJnZhTVjBwVrVrjcScy1n3S6Zt0UjYz 4hNrTpMXKmPkUTCbxnaE/dyl70/8P47I9/SZjIGMkFlLLYCCbSs+ENeCoIckjULWHww==
X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77
X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 79BF61F0089F; Tue, 10 Nov 2026 06:03:35 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794290615; bh=qpLwxWpXV7jpyie/JzY05PkW7uqT2gzRyZBD+Zmwxw8=; h=From:Subject:Date:To:Cc:Reply-To; b=KVKQkHtNlsDsXQTwyqzv3ULbhrav+ZKr2xZse9o3N7ijFdZOF6TGvXOHTi3ss58PF dZj0oDLx3ogOxmsNDLS/l6dUDzSTc58tWwY4OSB23QKxE2BfVddY09yxsnqA0okFuC 4QN3t2taeUAWEWAfKCgFflF7nS/5OkjXb9AGkH9sFEQeUQI1/IJJczpJ6biBUipXhG HQDP92sP4yAhMmpXoZ1PWVFbmFBsQREKGmg8bnI6tdXk2Vh8lC3fm9C/hT8fBtkT8m XEY44kttfmRnoOVzxMasA7pI7mBGVrn0aMMQXQBNR5io8vCbfelp+1PjR8G0bRUQ/P nkpxneMsgJpng==
X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 0960D488CC; Tue, 10 Nov 2026 06:03:35 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWMQQqDMBAAvyJ77oJRkaRfKT3EdNUVXEs2EUH8e 9P2OAwzJyhFJoV7dUKknZU3KWBuFYTZy0TIr8LQ1E1vjKlRs1hGWn3AJa/Dhp1t3ehs53vvoGT vSCMfv+UDhBIKHQmef6N5WCik7xGu6wO3KepFfgAAAA==
X-Change-ID: 20261110-sun8i-emac-jumbo-4839f984a6a9
X-Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org
X-Mailer: b4 0.15.2
X-Developer-Signature: v=1; a=ed25519-sha256; t=1794290614; l=1822; i=aiyengar1990@gmail.com; s=20261110; h=from:subject:message-id; bh=fve8G7g52w2v6vFX62vTvr/RCrFjlLHllgVlfUFu2aI=; b=yiASFtAaGQrGGu4XHXlG2h+pF+Hzb/UBBEhAtLY9NC58E0ylgDSaZ1CZuUKHzwRDxRzWB69fK xYjfYUjP8yuCPmZ059HUcJ++lca+DRT9JEoJp5/2I9MfGgy3MpRZQmU
X-Developer-Key: i=aiyengar1990@gmail.com; a=ed25519; pk=zXpRgUTrhaFe6jLyPqbBy3ccfkj04w0g2690Wv3mg+0=
X-Endpoint-Received: by B4 Relay for aiyengar1990@gmail.com/20261110 with auth_id=1480
X-Original-From: Arun Iyengar <aiyengar1990@gmail.com>
X-Reply-To: aiyengar1990@gmail.com