🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19474

Re: [PATCH net] net: stmmac: dwmac-sun8i: Honor the RX checksum offload setting

#19474
From: Jakub Kicinski
Date: Fri, 20 Nov 2026 00:11
22 lines
9311 bytes
On Thu, 19 Nov 2026 16:32:58 -0700 James Hilliard wrote:
> Would it make sense to address the `rx on` drops in a separate
> follow-up along the lines of Oleksij's dwmac4 fix [0]? On sun8i that
> would mean enabling error forwarding to DMA and passing packets whose
> only error is an IP or transport checksum up as CHECKSUM_NONE, while
> still discarding frames with a bad FCS or other fatal RX errors.
> 
> If we leave the checker enabled in both modes, `rx off` would only
> control whether the driver reports a checksum as verified. In that
> form the follow-up would replace the conditional bit-27 write rather
> than depend on this patch.

I'm not very clear on the changes needed to get to "bad L4 csum packets
still reach the stack" / correct behavior. Would you be willing to
sketch the full series out already, and then we decide what gets
applied where?

What I would like to avoid is us applying this fix to net (which
seems legitimate on the surface), but then following up with another
fix which unconditionally clears EMAC_RX_DO_CRC since AFAIU we
need to clear it for the correct behavior.
Technical Details
Message-ID: <20261119161151.5251fc86@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-367447-linux-kernel-netdev=dewy.ru
References: <20261115-submit-sun8i-emac-rx-checksum-v1-v1-1-f186d127b39f@gmail.com> <20261119144848.4ddd88cb@kernel.org> <CADvTj4oJ6HDR2k6qVgefUX-h0TGh2n+AO5gx_dcJFzzWML+2UQ@mail.gmail.com>

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!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367447-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: stmmac: dwmac-sun8i: Honor the RX checksum
 offload setting
Date: Thu, 19 Nov 2026 16:11:51 -0800
Organization: Usenet Network
Message-ID: <20261119161151.5251fc86@kernel.org>
References: <20261115-submit-sun8i-emac-rx-checksum-v1-v1-1-f186d127b39f@gmail.com>
	<20261119144848.4ddd88cb@kernel.org>
	<CADvTj4oJ6HDR2k6qVgefUX-h0TGh2n+AO5gx_dcJFzzWML+2UQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3017316"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CtUQmIrE8V4urpFJMYDAG3LzUMI= sha256:7lMHwUYyjCuHYuoVr4iGcxCyOSWerUDULCPww60TYpM=
	sha1:zkQ5ikZrGtfgnjpSEyLkmVoZCD8= sha256:VwYEZwygNvr0cTwz4R0v33b20dUfihtaLA68vaxbeac=
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 5171B115812; Fri, 20 Nov 2026 03:12:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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] 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 TJ6G77_C5eCo;
	Fri, 20 Nov 2026 03:12:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367447-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 062181157AA; Fri, 20 Nov 2026 03:12:05 +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 6160E141C84; Fri, 20 Nov 2026 00:12:01 +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=1795133519;
	b=2Y8W4ZC2uiWDq4esHs+HVv3VWuKGInfaeg1KPiZy+Ngyv7wdc+ydINybWuBUGXe5Fn0P
	 AEW4iyYbP94brOh3qxaN4lB7zY/olVpJ+5ma4NEK+gZ3El8LcIR+26pe31rESk1wq9XtE
	 lWcawNS+579O/M+nyO1sPV9B+ccfIsRuDv7A1QbM9J9CKcUL8wQaNnWgvc+x1KMhKjog/
	 CwNT1qXY/H5H+TurExUoo92S0UjSax60U3Gt9jPuBaGtJQu8T6v26UKc9TyugMZDsez/Z
	 PnOBYfvnZ64IANRDUuiA+UbXIeRaHBJAMnhCJn87v4vaoIPt6an7CFTAofB3DCsnzNA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795133519;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=GCUENms0Eg+zy1gRC4+um4g3Klzq7iMeIXkFPj0+DsI=;
	b=zYGhPzsqNwnKR/C1CB0k/o/BAimu2V8BirvqThNhfUEy0sNV2jWlQdm7qM8QzEXwrvYe
	 LEpnCOPfq8RbUrkTCqYh/a5hFISx+RK7f2XG7oXeUC9LdJ3IZ3qnIPnWTxcB0U0GeloRe
	 krKTZEgLFSt92+KwHCu4ZpVHKXtlYPfNiiazHcH2QdSQxjxIJFnLUNDamIXTYf2FjAvQi
	 MlOuRngrB11rpybDyO5LOv7VRPpitoEoSx20GxBXeMgP7gSk9e57kKl2KbywTWkcBKdL/
	 ij9klcDBKsIJ2z6dp+bdu3PTmVe7V/BQjyLJo59XLQ2Ld+cTAkDoplILzhLqLgeycpg==
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="kRQ7/C0f";
	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 10DC7606A330;
	Fri, 20 Nov 2026 00:11:59 +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=kRQ7/C0f
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=1795133513;
	b=anzitFDfk7Q3wWlCM7l1GFCBuIGwcXDqiFXQo3eYdMJtBrQqinVNcq0uZ4V3r9R9M9xR
	 z8H8n87mqnT4fDie1rWfiA8PKXOTs/ZEs7/gfjPcF2hlDbwS58MOhNkDU8k1Fe6t1yzhP
	 Ojyp60bdbNV2DoiP11DzU32r5l5tM+onwt2/neR6an1V7eNx8/qO/LZ2V/u5qifoAqI1X
	 H/B6E5Y3hfxnau1SDqygLo3UGDGaaEJmlPgTUoDLrwoQ5h7X3V5zFu3mh1JFlq9Fl0bO/
	 rvnJd3Vo719SBbEP2sMDZ7iwcgSNLIEUmYI26nKtPFD6TYyHjLPG8au0BlUYFb2X7tA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795133513;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=GCUENms0Eg+zy1gRC4+um4g3Klzq7iMeIXkFPj0+DsI=;
	b=hZ8RCgEA/r43V4tKaA/mbYDcW5brp2FHqN2ZD2btMDDqfcUmr/EGnk6HA1fEwz16D/sa
	 assUlNkMdVpHAqk/P5JbHNS0WAcV2kG7+hJZ0YhWAHc9rij4vhxUvAmEmYiKxZLgjSwj5
	 SIf8oRRAdhkcARLg3NzqoknGdhzQgMSLrxnIfx/0TTa5H+g2dpKHq5YKXQd5FX8fcF+UL
	 hEDhxCsQDrBcNh+n3xrViAi+bhWqacCy+NHJrC9XRAUCZdhMKJjTl9lH7VwspWqUegdkA
	 NhvFyxSuqm5x9mE6LO8L+e0QtJCxXSl32H8Dp+t1xdLXVzFj22qINPP/rGmujdKiiwA==
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="kRQ7/C0f";
	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 308CB60A2600;
	Fri, 20 Nov 2026 00:11:52 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52B5B1F000CA;
	Fri, 20 Nov 2026 00:11:52 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795133512;
	bh=GCUENms0Eg+zy1gRC4+um4g3Klzq7iMeIXkFPj0+DsI=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=kRQ7/C0f8r5gpJCV38GIqMKqTE8KoilEbFEHcXcWJZpuQ1ZqdZ9KpLDOS5z4lqMsS
	 +NXr7y8Aw0vXzMBLumsq9BTQMqtS1UGiJBTnjX6IyDaeYr3/4Ad4+a6PgAuNe/d+wx
	 YKpGn0eal0CK1ZteXl3WXH6g5iaJVHalixU//2WW/W2oJDnByEOBle1wdK6mQSWxCJ
	 yYnUFMF4qUuBqwYiHbDxqDoqqWjwKNDzb/AxXKR6hHMg+qjjh7SV683H5xXdwD2OpT
	 HhePPyxwkuYGgD6Jkire9ewfL9QeumC8auK3CTLdjUPGMcEeprdMLE/bHcBWk2fiNf
	 Tlb6L0UkCAlUQ==
X-Cc: netdev@vger.kernel.org, Maxime Chevallier
 <maxime.chevallier@bootlin.com>, Andrew Lunn <andrew+netdev@lunn.ch>,
 "David S. Miller" <davem@davemloft.net>, Eric Dumazet
 <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Maxime Coquelin
 <mcoquelin.stm32@gmail.com>, Alexandre Torgue
 <alexandre.torgue@foss.st.com>, Chen-Yu Tsai <wens@kernel.org>, Jernej
 Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>,
 LABBE Corentin <clabbe.montjoie@gmail.com>,
 linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev,
 linux-kernel@vger.kernel.org
X-In-Reply-To: <CADvTj4oJ6HDR2k6qVgefUX-h0TGh2n+AO5gx_dcJFzzWML+2UQ@mail.gmail.com>
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