🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13968

Re: [PATCH net-next 1/4] net: dsa: motorcomm: Fix stats64 error counter mapping

#13968
From: Andrew Lunn
Date: Tue, 10 Nov 2026 13:20
23 lines
9091 bytes
> [Severity: Medium]
> With the tx_fifo_errors mapping removed, TX undersize events are no
> longer counted in any rtnl_link_stats64 field, and that includes
> tx_errors. Is this intended?
> 
> The tx_errors kernel-doc in include/uapi/linux/if_link.h says:
> 
>  * @tx_errors: Total number of transmit problems.
>  *   This counter must include events counter by @tx_aborted_errors,
>  *   @tx_carrier_errors, @tx_fifo_errors, @tx_heartbeat_errors,
>  *   @tx_window_errors and other errors not otherwise counted.
> 
> A runt frame may not be a FIFO underrun. Could tx_undersize_errors still
> be added to tx_errors as an error not otherwise counted?

It should not be possible to send runt frame, i expect either the
hardware, or the driver to pad them to 64 bytes. So i don't think what
the LLM is saying is valid.

However, it would be good to get this counter reported somewhere.

	 Andrew
Technical Details
Message-ID: <84b7c0d7-c167-43ab-9384-869c0bb40ea5@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360239-linux-kernel-netdev=dewy.ru
References: <20261107132040.1066996-2-mmyangfl@gmail.com> <179414774671.994134.1756882573318817305@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360239-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 1/4] net: dsa: motorcomm: Fix stats64 error
 counter mapping
Date: Tue, 10 Nov 2026 14:20:59 +0100
Organization: Usenet Network
Message-ID: <84b7c0d7-c167-43ab-9384-869c0bb40ea5@lunn.ch>
References: <20261107132040.1066996-2-mmyangfl@gmail.com>
 <179414774671.994134.1756882573318817305@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="632192"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:p+NBQkTE3PKwIs4cEpmg9MyzkGE= sha256:2hPCCndF7CbRZT7cyshUwy2GLNrX9ZSFsbJMcKzMboo=
	sha1:ux5L/jl2mCw6f/J+Nohc7emsRg8= sha256:+h4k5TAY/4lXmofSv/aQAWKdgHGXJYxyapsdHCyRzJQ=
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 C9428113BFB; Tue, 10 Nov 2026 17:54:40 +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 qBPdaJG2gNv7;
	Tue, 10 Nov 2026 17:54:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360239-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 845BF113BF9; Tue, 10 Nov 2026 17:54:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id EDFC4182BA4; Tue, 10 Nov 2026 13:29:46 +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=1794316868;
	b=MeENbMvinCYFxfF9P0r7T9gI3rOqG1JWL9EuHWO5MfQj0eIhA2VvUHTlj6fbH5qE+Qa7
	 jZ/aoW5A+4Tbj48hTcbtNffFolrePm0EV8A0x7fpvlD2tAIe2jOfG+6vRH9VVhv8IfZLj
	 ++xPXxc5INOWpo/w4wdPzR/RDDPRE346OA01qMTOGnhGu1b1EeOS6oB+6A5tXs+KkGUzP
	 7zKEt7NcBlz1Jlz0AhFnjfK9zxINn/mr9tR1r1CgNgzEbboccGIBp9qwo2aBwA3xL3DaO
	 am6I44TwvfoJPKn+Lm0csVQBDYf3X+qhAlhkMxOg1TwluMjjZ2MVQ5nxX+IcpE171Ww==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316868;
	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:In-Reply-To;
	bh=3KmJj98pjmOS6ArH+mC3Dc/dvsMdB1K1uCEscB7vPCo=;
	b=anRvTgfrAbGjRtg6S6iIFk1HXx+9iWwnwCBEQ9SSagc/HMnWu82MxJVj9fZzrzZtwxai
	 kXBMxLinHYaV/V4fSbPExlA72Z+hTcMUjcMST2YpdvP2vDRQb7zG2HeaYXvudIzqdmAW/
	 rLUObNO88eB7G1uUbDvXeAlhgOn+JIjnZDFZOeJfBw6I7xI0ToKfMKExKL7/E34QMxvKB
	 ++aayc8cex4yYlRqcMHCYv8BrTu1XsWZ1+a3Edak4XaXeVV6WHGSlXvmhQwiH/gX9W4PT
	 JOvr2j7EkUTOTK1wcIpbyhYewN85yBXeP7MIuGfOz2/Hdxzyl50gpwvI+ifS7RE+yIg==
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=cdCgFvD+;
	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 E90BE607B124;
	Tue, 10 Nov 2026 13:21:07 +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=cdCgFvD+
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=1794316867;
	b=thcBKonBsfcGyrU6VI1YJVq2U62/Lu4orQTPijD3tOGybHncAxPA8FwYy5lwPTeXl/UX
	 3KDQF2Rdnph6/4Sc8UfqK/8OoiN88LLkNpDbIPr+UyA/ueYj2WvuotQHk8C79uWGfLwMl
	 jTMf+wvCtpbnse0YZjyXXPO1vQWdzhW7gvsn6webQAnVxJHtn5IA4BeN0xCQXtDK7gLJ2
	 6usANq2pj+XNyOM+gii78qpkQ0znisHc3tf2t3F4B7hpGg8hbv5c+SjBAP7xcxHljtkjo
	 uJt69iag7pVcUY/2mMkpdyAk2uwndq0RQl37Z8ToAFUIzhr4pUga+kSv9Ag60k49tzQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316867;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=3KmJj98pjmOS6ArH+mC3Dc/dvsMdB1K1uCEscB7vPCo=;
	b=leaWMnW65iVUx4U0yRvAkbRVyHNOuSu8pOo6z9L4HVtDlY+4wYBCVc9EDMyg2UxtN1jj
	 BRKyX1UD7l39DBPK0DQvb8W2CPuM66WaHlHa+pn7XUJN9FZj9M2LDpsvmK4alIkAHjFFh
	 2/9AHAwKVWJob3lC98YcwIfTX9FMCJVptnk/EFH89vZafBdoJlub+/IxOqo4/Iyfwp9fz
	 coUUz7IFvAd5bQQ+y1uOy0B6o8y+433K5Tcf6XXLBePVkhAC2OTZCA3uYr92x07OgKAq3
	 q+DE+MkcB6qR8RIXAYZdkEcNNFuVQGdeYypea5xrCwdKTZeIQJxc+oVzawhJb/jG41g==
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=cdCgFvD+;
	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 B4166606A770;
	Tue, 10 Nov 2026 13:21:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B4166606A770
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-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=3KmJj98pjmOS6ArH+mC3Dc/dvsMdB1K1uCEscB7vPCo=; b=cdCgFvD+aak+2qa0hM9tdatBab
	qqdGTPrKvq8aqPIMf6w2hUUL0KPAJFsg8lAR0hB/H7RM1sv3966DWWDRh16DIj8zg5JxrKDZvlxkU
	mUD34+iB4j0eUii+Ce21fShvOT/JFYiZsk14Tck+NnXJ+XS0K5Zc9q3wflJScWf+xYjc=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xQlmV-00FU5O-PR; Tue, 10 Nov 2026 14:20:59 +0100
X-Cc: mmyangfl@gmail.com, netdev@vger.kernel.org, olteanv@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	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: <179414774671.994134.1756882573318817305@kernel.org>