🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16910

Re: [PATCH net] net: stmmac: preserve RX checksum capability when offload is disabled

#16910
From: James Hilliard
Date: Mon, 16 Nov 2026 02:23
48 lines
14247 bytes
On Sun, Nov 15, 2026 at 5:53 PM <netdev-bot+sinfo@kernel.org> wrote:
>
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
>  - How the issue was discovered, e.g. hit in production, hit during
>    development, syzbot report, manual code inspection, LLM or static
>    analysis tool scan.

This was found while investigating RX checksum offload behavior on
H616 and reviewing the shared setup and feature-filtering paths.

>
>  - Whether the issue was actually triggered, or is only theoretical
>    (e.g. found by LLM and not proven at runtime). If it was triggered
>    please include the symptoms, like the stack trace or kernel messages.

The capability loss was reproduced in a source-extracted test using the
actual GMAC, GMAC4 and XGMAC checksum callbacks with mocked MMIO and the
relevant setup and feature-filtering logic.

With the original code, disabling offload and following the reopen path
clears plat->rx_coe. The feature filter then prevents offload from being
enabled again. With the patch, the saved capability survives that
sequence. A requested enable that fails hardware readback still clears
the capability.

>
>  - What hardware the change was tested on. For driver fixes please
>    mention the device (and if relevant firmware version) used for
>    testing, or say that the change was not tested on real hardware.

Tested on an Allwinner H616 board with an AC200 PHY.

>
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account.
>
> *IMPORTANT*: If you do repost (for other reasons) - please include
> the relevant info in the cover letter or commit messages.
> --
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.
Technical Details
Message-ID: <CADvTj4orHRWsBCitdUt5rMXisGK-yzjysvGZcgQj=cJ1y1vb=g@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364009-linux-kernel-netdev=dewy.ru
References: <20261115-submit-stmmac-rx-checksum-capability-v1-v1-1-ea26fa3689be@gmail.com> <179479040161.3291.5723238689308327095@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364009-linux-kernel-netdev=dewy.ru
From: james.hilliard1@gmail.com (James Hilliard)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: stmmac: preserve RX checksum capability when
 offload is disabled
Date: Sun, 15 Nov 2026 19:23:31 -0700
Organization: Usenet Network
Message-ID: <CADvTj4orHRWsBCitdUt5rMXisGK-yzjysvGZcgQj=cJ1y1vb=g@mail.gmail.com>
References: <20261115-submit-stmmac-rx-checksum-capability-v1-v1-1-ea26fa3689be@gmail.com>
 <179479040161.3291.5723238689308327095@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1958640"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/UOet6Ie0AL0I0mnoXDHxlpGjLo= sha256:S3RBSECvzMfg2+YPMv5Qdq9n28iZZWpyjB1CL6BnqVU=
	sha1:MInYDzkUQfzxJGd5V2YYe9DtLyg= sha256:wfrgdH/Mo2dE3HqmIjOkhgCwbTNHNeS7LkZy4QL0XsM=
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 D9A3A114AFE; Mon, 16 Nov 2026 05:23:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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=gmail.com
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 MyVSA0WTWmQm;
	Mon, 16 Nov 2026 05:23:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364009-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4BF5C114AFB; Mon, 16 Nov 2026 05:23:47 +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 D1F222FB68; Mon, 16 Nov 2026 02:23:45 +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=1794795825;
	b=HgLX7H9K6txVsAeYLvX6qMswuo+p15RQUFXzIw9bfdAd14A/uTHj3AXbLSHTgGjOm6a5
	 oQgGp7VYJDeviVSRJ23gohbB0juAMjOw+xYQ58Xv9UXCybQz+jEvXL26Ao4Awl4lRNr3C
	 lY3nCW87ifh4meSoT/Tz9RMfy9RKkx1uWAHapYZYWNiyzfdlwgqo7TQYN4Xe7Mmwe8OVA
	 Qhs4CLxRQLDy75AxzBOxGsXS6wbl9nnr9MOQ+0V2s6qS5pCX9jAY/TSjzXx40+VyAalql
	 hSWZo/zcUL5oUj+YKOxeYDUPnhVIFN6Kx9OZGUvSkEZPWmiY1jfMExMbmNN9fJHYwsA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794795825;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=dz7cTZKRmd5e1YDqmF7k9Y/7wi6YrT3O/phywwy1Iak=;
	b=YDp+81EhNaAuXjLLWo9yV4WLOJkA3xu8g+Oil0mUjD1M35f+6i6AypKQ1nEgFNQceUC3
	 WiF6vnwI5bm0u9EiFcfWARDePYPzgJoBHrLx4PT7xE41g0cd0Kh8Qeo8mwpJP5CSl2HwW
	 s2MC9Kw+cGuQeHqJTq/Y70sr+I/Ed/sBENbGiZ7fJiNKOr1HOUkZylK/2s/xXo+sG9Vpr
	 I7GEAD3kKGmUvb3F1JpRxeZ+b7X2IFW5g0TU0KcgST/Lpbb60uFTQ/TxP7VXCK35z0yWl
	 H7JtnCmizx2n9Co55w/qf9zrsbn5ay0EGJ4FD7a+o00o/B9vOh7Iub/1SNCfJYji9Kg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=H7HQuqWs;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 20B36606A32F;
	Mon, 16 Nov 2026 02:23:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=H7HQuqWs
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.217.48
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794795824;
	b=H0Bz9IPVSQhPGyFN2Dyolyb6UoRhAKiatM68upbc5rhde0c6PrvzkR1dfvB07cNrwoFf
	 eTQyCmyRS33WyZekXTSBtGOpP1RJjCw9y+n5zVUWFyAgALOeb8aLxtzhCGWMjcKp/YF1U
	 Jz9ZLNnF/GdaYKZ4v2AdsADrPyolJsqzq+BMMQ4XYDl5FYLvDEK03qntAXbLHCGaa1cg5
	 ZQEkbMgQ2ONT9BuzslYMggY+R9/8An2CZTaeWV3zKYG6CwQll9vm6bKm5iiVavYup0D91
	 MUcftHIo+OQGBKYG9P0c4ifx1Dx8WkGhFw1Iek81+9zU4zOQVzLAGB4NS3u6sMuJWfg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794795824;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=dz7cTZKRmd5e1YDqmF7k9Y/7wi6YrT3O/phywwy1Iak=;
	b=zx0qKpAjUOWwkbzJDiqss2sZ94GlMNvKxhqAWRr1Hx5mRUNOiUwPBNipZCzFQt8kDs/z
	 HjTLKdQr/kViBotg6HuxEW3zxFRcExUKouiEU5fLOqPAroBGxVeM+96iN68S5oQ6K5u3a
	 9GFr6wdoTAazOhjeyH71b8WL2zW2FsZVkK7wBkfl5wHhBQK2/Qne8Up5DLK/Nx8d34X8R
	 QMeVizf8e87aJIaSGrxP1vp32uezJX3wqCeO6lqstSYxJYsM+PZygLxpbZIFNDGiX02oz
	 lJpTyUXFYZJvJimACqa9fyePwrDXxVuhAa96hish6togXg4VO8L+/59aQAW7KIApoHA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=H7HQuqWs;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.217.48
X-Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8768606A31F
	for <netdev@vger.kernel.org>; Mon, 16 Nov 2026 02:23:43 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D8768606A31F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-vs1-f48.google.com with SMTP id ada2fe7eead31-74ab99038afso2753494137.3
        for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 18:23:43 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1794795823; cv=none;
        d=google.com; s=arc-20260327;
        b=LJjqVcMcU+VL+v/pg07oPSrj+I6FkImj2Sm6DHp6YGu5BhaiaUfIPSsVoldCSZ0DlU
         aRadMeFpfBgyBL8dr0erDUBz8DXbhnGJxTdjiP+NWBybPS1ROYPM3HfDEztBOVAcm/Ac
         5otelsEOWMfp58qlb7OxldRsE4RIiUvbcPcz0Bf6tHD3qLF2qmDmf2Bj9PVE7mI+Jqy0
         2yoCNR6wErGFAFNezmPLcGoF04aQasoaBa8m8rYu8aHVe/yMXx4uddIZ5qbb/EiC5DIa
         vAWyJeCCMg0GXa3OeaOYbdzZNffeqmJwnMHLf33itDjstwQULkrayxGW4W8NWij9BmZU
         8/7w==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=dz7cTZKRmd5e1YDqmF7k9Y/7wi6YrT3O/phywwy1Iak=;
        fh=y5OFCL8SvyJfji3XvsJcTHi7lA6sNGXt7erWwpA3t9Y=;
        b=OhtIXNWawVPA3tn+/AMPfXbFkwAQbiFVvypJLrtSqRjZkXL72NlmWXJDTq3YlhgI5a
         ONXaG+ZcWsAje2iV1kNzJp3Yiu7Q8fhQjopkapZnSv+EKSWO+kZpruy5W4GEcZywCYB4
         N7TUKFB19IfxIm7JjKMH4eC50/acbEu6NNjrcwfqDn+RL3Kd++xGl2ZSav4k+QzF5Ty2
         FRF8xNy9HnUv+ENoL538rt9JepJxetvQnt3dOf1WWIg+oUxtSfgKP6sy2itNBE9dl5RW
         5oXicKFrXtPWnBh6d4I1JH7x1fIPYiS+/zR6RZzv8jQcsrwSoxxpArkybSg4TMe5IBb7
         hA+w==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794795823; x=1795400623; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=dz7cTZKRmd5e1YDqmF7k9Y/7wi6YrT3O/phywwy1Iak=;
        b=H7HQuqWsVzZsiIHC9hq/wCIUHRDK56xXHwtTvbfCDjE/9I6cDZIzEqYk41iMFBmPin
         5hGYDCj3e9yKBZUnR6qUTAthcdwQzxvAJZqnCWfW9ioyRI/ONrA2XFv45HNdWX5wkRlb
         yM16bgQZNKv3SBnNArIxXJLKJ70E1UbrBscAZxlAnR1hqZ6m5IRadCDvyUp/WsRjOiAZ
         HgZVRByRzUagfCnCoL4TeYHqxoAVffyQHfWvlqKisQkQgNu0ipeJhsw+S/XjMXEos1c4
         8m4bWMAFmJ7qpaxUZ4iZFMivoGIgoZMl1izfaPplxGRTtVszodJ4oPoss/nr39RVF4sL
         2eEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794795823; x=1795400623;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=dz7cTZKRmd5e1YDqmF7k9Y/7wi6YrT3O/phywwy1Iak=;
        b=zhq+infeZWaeiZJSW4nhabCQwUX4Q0zGZ10yqXcJqjBu7VpOL64EoBrbu3tW7qnzDW
         0IK9m2dhM7Ri0kEQB/mx74vXUHqT7u6c2tPUVi0zpphoQi/PFAqE0MrytGBhckz3FjXX
         cwZZAKi0tcYGM4VKc4tP7OyM7PA3cS+DAoL+Jl3+50y0Fa9oadI3S12RGblh0sgdsr7D
         8qYKNX5P7yA/j/9wzrY43pAz72IAxycypsXp+YCeaphOGAgdjSmq3VoCjtpXQ6RCxCHv
         qylggMy7IPwAxAs7wmFcOVakd84+ccQyZ/SG5yvuN+hh18GbtlaeAgQwwz/DmB/2vhfY
         I5cA==
X-Gm-Message-State: APuU4Z8Po+1nVgdG/tsbgffdaXgp8xB0BqIDEoUmDCYXz2Ag1BpC5qyZ
	hsWOCVnkA7AKFrTFu2iBEiyvw844eWsNUrSBhcrymm0am2jdqVtTJUXKKHxbuwPsPfmGA6QR+cr
	NaTo00jzFsR0LGloigbd2ACjHzUbXx2E=
X-Gm-Gg: AYBFou0ISKA3LFW2gnvpTO/y2jtc0u7/u7CREh/gdwvqLMuvn66xx9ZWfvfTneFddFA
	7vpnMNHfixyKKn1Hnt02e+m9OeXWHSFL9xT2EkKSRnznzeLWg60OfdhDaYMJXub8IqLl014Xj9Z
	u98vE8349V4Np/M5c/LjyaTIxIvjGadcLVBxWEBlbMXURVWkOE/iwWTCD31oQTLoZ3LFyNEgPIJ
	MfjTE67mTHT9P//UySFetUhfe/6Nx+eplX1o55312Jg9p+rMF4q3IhRF0muyLDGDm2RgrGJoZ2l
	r5WDTGJStJal7wWcqnB33i9lZUYg4VzqOzdllRrEBf98bpgJqcJI4+vvOcOyDj+J8SSzI8yCGIc
	rYFKg/TqVCI8SCdcZLnp+3cWqrVlYSK/9RqUOzX4dHDaqqwyXr70znlfPkDndll3Dsm0Pt1AgOj
	BR+mPyL+xtW8AKj+MURHNf95IcB1QGi4sovwq3a9xNWIVIMHMMNzz9g8fR4ANVuG3YiwNj6nhY0
	h5ndeUqUzXRvxs5P0LA42CssmUVxQ==
X-Received: by 2002:a05:6102:510f:b0:7ad:3ad3:997a with SMTP id
 ada2fe7eead31-7d64d45ce68mr3458686137.5.1794795822798; Sun, 15 Nov 2026
 18:23:42 -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: <179479040161.3291.5723238689308327095@kernel.org>
X-Gm-Features: Aa3M54r7-r68gNu4ymZsCQOh8t93vqxjaKLCKDTADrWnDebXaQvgc4p-YSz5rsA
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>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
	Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, 
	Giuseppe CAVALLARO <peppe.cavallaro@st.com>, linux-arm-kernel@lists.infradead.org, 
	linux-kernel@vger.kernel.org