Article View: linux.kernel.netdev
Article #20395Re: [PATCH net v2 0/2] net: stmmac: Limit the MTU of normal descriptors to one buffer
From: Chen-Yu Tsai
Date: Sun, 22 Nov 2026 10:48
Date: Sun, 22 Nov 2026 10:48
48 lines
11203 bytes
11203 bytes
On Sun, Nov 22, 2026 at 5:13 PM Arun Iyengar via B4 Relay <devnull+aiyengar1990.gmail.com@kernel.org> wrote: > > Normal descriptors take frames of at most one 2047-byte buffer, but > max_mtu allows 3712 on arm64. Patch 1 limits it in the core, patch 2 > limits dwmac-sun8i further to the 2044 bytes its RX DMA fills. I think you should clearly state that *one normal descriptor* can have a buffer of up to 2047 bytes. And the driver is currently limited to using one descriptor per-frame. The way you write it makes it unclear whether it's a hardware or driver limitation. I believe it is the latter. > Tested on an Orange Pi Zero2 (H616) on net/main. Without the patches, > MTU 2029 to 2100 is accepted and ping gets no reply. With patch 1 the > maximum is 2021, with both 2018. UDP and ping are lossless up to the > maximum, and larger MTUs are refused. Ring mode and other cores are > untested. > > Claude (AI) helped write these patches; I reviewed and tested them. > > Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com> > --- > Changes in v2: > - Limit normal descriptors in the core (patch 1, Andrew Lunn, Maxime > Chevallier), keep the lower sun8i limit as patch 2 > - Link to v1: https://patch.msgid.link/20261121-sun8i-emac-mtu-limit-v1-1-22492842d318@gmail.com > > --- > Arun Iyengar (2): > net: stmmac: Limit the MTU of normal descriptors to one buffer > net: stmmac: dwmac-sun8i: Limit the MTU to 2018 > > drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 1 + > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +++ > 2 files changed, 4 insertions(+) > --- > base-commit: 890f23ba87a7ca1aba97c8320770a686e3b689fb > change-id: 20261121-sun8i-emac-mtu-limit-66a936064965 > > Best regards, > -- > Arun Iyengar <aiyengar1990@gmail.com> > >
Technical Details
Message-ID:
<CAGb2v66oxp7G92psuF-pQsha5doh47j2gSMiTY7PAB2dYfozUw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368657-linux-kernel-netdev=dewy.ruReferences:
<20261122-sun8i-emac-mtu-limit-v2-0-c4081e5b83cf@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368657-linux-kernel-netdev=dewy.ru
From: wens@kernel.org (Chen-Yu Tsai)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 0/2] net: stmmac: Limit the MTU of normal
descriptors to one buffer
Date: Sun, 22 Nov 2026 18:48:47 +0800
Organization: Usenet Network
Message-ID: <CAGb2v66oxp7G92psuF-pQsha5doh47j2gSMiTY7PAB2dYfozUw@mail.gmail.com>
References: <20261122-sun8i-emac-mtu-limit-v2-0-c4081e5b83cf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="3616101"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ikyDW9LTIPufmjiTke/W1fzt/zQ= sha256:EFx56/3BjW0Y+91PGD4k7cPGpdX/ka53tQ5Q/iDSr7Q=
sha1:Js18y9Bh8dyXr0hNONrQwXeYy8s= sha256:lk83gcSd8h6OFAYw2r8JTrKxwlCnYEtA9FxBn/tYcfA=
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 2FB41125D75; Sun, 22 Nov 2026 13:49:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
tests=[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,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=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 5XM5QunrNnk4;
Sun, 22 Nov 2026 13:49:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368657-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 797B5125D73; Sun, 22 Nov 2026 13:49:03 +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 2280A2EDCB; Sun, 22 Nov 2026 10:49:02 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795344542;
b=5LYLWjYVQZ3bM78F+NsXynYqYjOzGXJUXK0X7stBmMmUUwCg57+unS1EMroBFDtnT/Qg
zIni8B61LDMiB4ubo3lbk3jPba/mnZe3pPVvBFTCFc/QwHKpNL4EM7Sn60uepjVrdZL6K
bg181PG9sZhtM+xg3zfN1NctRl0+lAb2veE36ZxolauHDFIx7nIplZaSHXZUxycMXhyrP
jMDGJDT/rjJ1Lt4ofCwgEoccxtwIYfCQo6hmcmrQwDDzfTIXeaMo8REsfONlUk5O9d708
ym5WeOeH0JBvsIACpeCVbc5nCbEc/XhmFyUmDzsGP9uQZbE3xNvR5EJMxQPS4c4FCVw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795344542;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=82vT/MidDA+8aMYka2WD5yUJcaeeqPoH6Zw6wVte8cw=;
b=hpgIbmuxSuonw0MaPPtNS6HXjGV+ZQv+oRRUfrDYfgfDEIflnpyQ0OGN7fYMY0DpRY5D
t8vwcf3bc4JrkTH7amlf0e8sW9E3ofr+lQdkZIR1FrrhcUWMSlFPNtc1tnCzOuqofMR+p
jGgl1cIa0oWHHV8h8ktaj/VtCfVBo60hiOE20qCs/vH7qhycFlAha9InvmaP2mCSPz6Gv
o6+deV2SdvI9F/9wsA53twP1lhWNsWLpnAkbXU8H9fsuW0kiHVSNmNH31YSvl48eDBcH6
bUE9SZbdG7zD/a4G4mI4o05lg6gJGQ95V9yRf9pbd6CzaXOpGYIKDhK41JW4mrwz41Q==
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=Q3tRe0tK;
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 EEB4D606A336;
Sun, 22 Nov 2026 10:49:01 +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=Q3tRe0tK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795344541;
b=dBXMjzd8mq7SIChXosnv1z1Q5PF6F/QGMbd+B6ZEkJ4KFwD5pY3RaWtihKrDVSduSE5x
gAqEmhVf5ypoIjIiDMf7JmvaDKTLgn+fg4wHFvtHJtR7ebG1k3U0w821Ug2f8n+i1iwmf
o7/PYEtCBM4vZ1QajunQx8B/1XjsdZCFhP+Ix7NeIPBbYS9ktGoFKb3BIdb6civW0/ynw
NPGHN5W6/E1yesZDzLhQKkE0CJLgtlEvubyHxdxT6vWh+QxejtsDyqa6mylwkNm69g7ZJ
SHu0K+NihSoXr4Ahx7FIsUNty/EHdzl998IOfR/fnfMVEmrFmgwzCpGLUtgp0+9RyWw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795344541;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
Reply-To:From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=82vT/MidDA+8aMYka2WD5yUJcaeeqPoH6Zw6wVte8cw=;
b=jHvcsb6RienSz8Ihb2GMX/VJ37Q9P+pjv6KRKcC/xWVTE/mOEXNYqCRTyk3ld3vNjohX
Lkf1tmwCsAu4B7LY4k/VDwyUXi7topXNij/Wrzsp1485yqZtQAKPBhuXPMg6Lpyygam9N
IIRE4LWjGQcLzxs/OxgjnSA9AbY904ftYw6bTaurEaK4d/nLykSHTyyog05jBvCbrmuXQ
b6osxhqICG1LqKBBdp3TQCnt1i7nS92r1vkyLGCtRIIusMCWCJdh5+gLuJ+JtzCqV74t2
a5tPwc/uq/l8ycvNY+lLpJISgW98+VFzrcDJR0XrwTf2SbGAn9JkhdwtLdQfDTSMrEw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q3tRe0tK;
arc=none 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 1A321606A330
for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 10:49:00 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B36D91F000E1
for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 10:49:00 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1795344540;
bh=82vT/MidDA+8aMYka2WD5yUJcaeeqPoH6Zw6wVte8cw=;
h=References:In-Reply-To:Reply-To:From:Date:Subject:To:Cc;
b=Q3tRe0tKc+da4fHoKNZggf+QYLWK/vw/RT2uLgHl0fU/2aO0OT1jAjK4bf+xeyIbM
WL5hrs5EqOPsI9Vd5n5n73nG13jsMd/zZQ26MhWur+5jcjOH/qUU+/c5ND84/GrT06
atCOmot23FoQM6oc7n8w4ILuhPkx35rD9bRB54dUrP44iPF16GIc0fJMnFtY6UnvcR
cBdftCQ8izLhWvRPd0DkX4YKlQ7fetTicDR1Knq+We68oZSx3vBVpS5PFdBROluTQJ
cgcDOCp3iBzj5huZTUfRRDJ+w882AMl5P4dHV9ipwgLRUi3SATQhzFVCVkSwJeoEpg
XxAKPk49RUx0g==
X-Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5be3d5927ceso3444378e87.3
for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 02:49:00 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErEqs0d+lg/mIbI2qSQ/ReRMR6NlacnHB/mkgxR7NpHuqj63QKpL5jGAjgE/bwaSRP0vyy0Y2sI=@vger.kernel.org
X-Gm-Message-State: APuU4Z/szrHICrvG34TLDYKCdRKmGk8Qic+MF6i89CRi28Iz/gY0jsuH
a7vvR0tmO/HiDVb4ECTHxzWv8C8hsZ32JvNmI15rwz+xJISNZY5fX2nBekKzI5lUqVbaVKOGlyx
1aEs2xr84zTCOCpPjEq6RWK2MvqP6iiE=
X-Received: by 2002:a05:6512:6811:b0:5bf:a209:f81f with SMTP id
2adb3069b0e04-5c1bc8227e0mr1708230e87.37.1795344539095; Sun, 22 Nov 2026
02:48:59 -0800 (PST)
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-In-Reply-To: <20261122-sun8i-emac-mtu-limit-v2-0-c4081e5b83cf@gmail.com>
X-Reply-To: wens@kernel.org
X-Gmail-Original-Message-ID: <CAGb2v66oxp7G92psuF-pQsha5doh47j2gSMiTY7PAB2dYfozUw@mail.gmail.com>
X-Gm-Features: Aa3M54r7bLOgFVd2AUy7gPHcb4qGTG5JYucqFv0oQ6biMXQehq8fLcl6BjtfAGY
X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>,
LABBE Corentin <clabbe.montjoie@gmail.com>, netdev@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev,
Russell King <rmk+kernel@armlinux.org.uk>, Nicolai Buchwitz <nb@tipi-net.de>, stable@vger.kernel.org