🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13918

Re: [PATCH net v3] net: dsa: motorcomm: Prevent rx_bytes/tx_bytes underflow

#13918
From: Andrew Lunn
Date: Tue, 10 Nov 2026 13:15
25 lines
9237 bytes
On Sun, Nov 08, 2026 at 02:07:34PM +0800, David Yang wrote:
> On Sun, Nov 8, 2026 at 1:26 AM Andrew Lunn <andrew@lunn.ch> wrote:
> >
> > > +     if (res) {
> > > +             dev_err(dev, "Failed to %s port %d: %i\n", "read stats for",
> > > +                     port, res);
> >
> > Please don't break strings like that. The reason we allow lines with
> > strings to be longer than 80 is because somebody is likely to grep the
> > error message in the code to find out why it is being printed.
> >
> > grep -r "Failed to read stats for" is not going to match.
> >
> >     Andrew
> >
> > ---
> > pw-bot: cr
> 
> Hmm that would be more than a pure code movement...

True. So add a patch which glues this string, and any other broken
string, back together again.

	Andrew
Technical Details
Message-ID: <60bec8d3-7a0f-45d4-bc6c-a43ce92d1884@lunn.ch>
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-360222-linux-kernel-netdev=dewy.ru
References: <20261107015447.335056-1-mmyangfl@gmail.com> <91357461-8056-4b1d-a06e-6f1db5eeaaa4@lunn.ch> <CAAXyoMOwtQB01SFo+o2UPZZtw3Dhkpq94h8N55ZEas81z6VWUA@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-360222-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] net: dsa: motorcomm: Prevent rx_bytes/tx_bytes
 underflow
Date: Tue, 10 Nov 2026 14:15:18 +0100
Organization: Usenet Network
Message-ID: <60bec8d3-7a0f-45d4-bc6c-a43ce92d1884@lunn.ch>
References: <20261107015447.335056-1-mmyangfl@gmail.com>
 <91357461-8056-4b1d-a06e-6f1db5eeaaa4@lunn.ch>
 <CAAXyoMOwtQB01SFo+o2UPZZtw3Dhkpq94h8N55ZEas81z6VWUA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="619092"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MMDiLbme1UZ6XNbdF2K+cRpLHFg= sha256:kru1oXvJOJeJ2BjUQVGTvpraK/JIGugJUhnQ8or6XYc=
	sha1:m58zRx32iGRzMY0iJzdkiInYz9Q= sha256:/W95VkuzDEsUxEi9k3q7gWLE2ZeTAz74F+46BzcJ7Wc=
Content-Disposition: inline
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 058EC113BB7; Tue, 10 Nov 2026 16:49:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 GuD_vsRTucNz;
	Tue, 10 Nov 2026 16:49:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360222-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id A236B113B5C; Tue, 10 Nov 2026 16:48:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1027116047D; Tue, 10 Nov 2026 13:17:36 +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=1794316531;
	b=Z5lLPWMXX3PTsgQ9AdfzyS16zzWrpsGE8s9XTB5TdUppkqx05GsqjYV7zVDC23zbm6lE
	 2PG+9EJhSKUBYqS2BMeNYHkLzIHYBFe+s3LfTgrfyM7jkUcN5VcHELwssOUTLI6ph/dIX
	 OpyMM2eR9eadbSOOXJ6wvijR71xGV9hDKosdX7FI8smxawYyOv3XbFCzXA+d3Xo7pI8jO
	 DD0k7sBodS9zsWmHpOxdNxuw8rc9hZJkTyKV6nrg/cqVVX10Q2maMXnXtYMdtu32zHSkv
	 EJS65nInsHLTjfTkGraye50aGvN+hYv/KtfpAvoxZKpCxr064185Dg8zwfnPety8O+A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316531;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=D15Eu+ajxeeIDXHCqmfCYpfdhqr+t0pJpZfF3KXQSIs=;
	b=ACO2z5FBzJWmnhKXf8MLyWTNCh7Nzc2O9OmbLgymcHJWd+enCdQoG986b/LdESQif1A3
	 mxA7xcpzlIKj2Xg3ZpNBDcJ7z4E75Cexyty59QbOScoAVc/4UoAgbhT7dB6Z91pJi5ByR
	 rNo8xzpik+n+W/yWDFTYlWDG1XW942jRY7pcY3KQ8iUVXAVAdyEMOk59dWtvVAl4ADB88
	 fveGzJXluRmR9ahetDApp7KpqTGgTkWo3hLie7C2WqWerBMRfGPI5/RPpJxbHOJgxjxg9
	 +K7uipF74/pl8B+g7JP9dOCS3qi7ucC3a4PAA7mnUaKZJSdrhb/ee+sqSaLMF5/JLKw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=PExuW3zb;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 B7EA4606B2F9;
	Tue, 10 Nov 2026 13:15:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=PExuW3zb
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794316525;
	b=Y1cjxiFbKneX15Nux/RXt0sNpcMWNbC0vzhvz7eLmTg3XBROy95gq3fjfdOP+iV2aRaF
	 hl/o9SFSI0btp00ZzOj6oxfi4pDRs/bMjzsDLylzh/YlxAMluGwoivBu6OqwUFSCRFObL
	 SaEoR/WWuo+qiOsBHyIn9xNh+mfrVQh7D/LMAz7fSVIirvR9jsfuzBZHTqG+8+2V6ESlF
	 dQleLFrsQ960dDbT4sPnX0Khdg5cRQ7DWxXWxRoEVytDwOXhqFEHU/H6LxUd7YskaJeQi
	 BQTBg00Iy6SaT3pQ8d6XXA2BhwsB4cl1pUaK52h7bkQb3jmf3v2iF3mbgt1cr1fiPsA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316525;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=D15Eu+ajxeeIDXHCqmfCYpfdhqr+t0pJpZfF3KXQSIs=;
	b=sCHd4XS4fDHl6c3XEYzoZNaY35/dQYCe0ljBN8T80WzC/jY5eazVO3wSCuGG3RAJxU3q
	 0SX3jTRZ+n3pMtUDw8f2FJ0BXi/CD8dThnS8s64Zfgzwxs/nyfIHChEvVyKGjs9/5AGx7
	 tCTdchA0RhaOssyMzpxcYrkn8c+QkrmgJzbxMebAls5/Pgmlh5gVfSNpRUCH9RurXLlCf
	 sw0ZU3RQ1S5hNCGkQszWKroyhewXHA3AOx1YQIwttOjokBs75ZuLNdmeBff31aWGg65Ij
	 VfB7uXuOD80QgMR85VXoq37PCaAN1sZefr8OcuPVxJbL7zQ6uds7PNUX9A3BTQI6hxw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=PExuW3zb;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09A96606A7F7;
	Tue, 10 Nov 2026 13:15:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09A96606A7F7
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition:
	Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From:
	Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:
	Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition:
	In-Reply-To:References; bh=D15Eu+ajxeeIDXHCqmfCYpfdhqr+t0pJpZfF3KXQSIs=; b=PE
	xuW3zbf6G3AaxaJnxKPZYxEMTXpiW1ly2MvOY9Z077PKtNMIL53j0vEQnB1G1GeW3hh6AV/eFSUZK
	AGuq8B4o3bGCYOe5zHcyCuSzdDO5ck8L8XtCpm5Gg5lcZ+NR9XPKAV9B/t3pDakdvaAeWw1AbVCcn
	zEHNUn+IZJBwsIc=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xQlh0-00FTzo-S4; Tue, 10 Nov 2026 14:15:18 +0100
X-Cc: netdev@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	linux-kernel@vger.kernel.org
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: <CAAXyoMOwtQB01SFo+o2UPZZtw3Dhkpq94h8N55ZEas81z6VWUA@mail.gmail.com>