🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16944

Re: [PATCH net-next v5 2/3] ethtool: add a PHY receive byte total

#16944
From: Andrew Lunn
Date: Mon, 16 Nov 2026 04:39
26 lines
9570 bytes
On Sun, Nov 15, 2026 at 09:12:35PM -0700, James Hilliard wrote:
> On Sun, Nov 15, 2026 at 8:25 AM Andrew Lunn <andrew@lunn.ch> wrote:
> >
> > On Sun, Nov 15, 2026 at 12:45:46AM -0700, James Hilliard wrote:
> >
> > > The generic PHY receive-byte counter describes successfully received
> > > traffic. Some PHYs instead count bytes in all received frames,
> > > including frames with errors.
> 
> That restriction comes from the current kernel-doc definition of
> ethtool_phy_stats.rx_bytes: "Total successfully received bytes".

Yes, i found this.

> Should we instead clarify the existing rx_bytes definition to include
> errored traffic and use it for ACx00, dropping rx_bytes_total? That
> would leave the existing packet counters unchanged.

What do you mean by errored traffic?

Think about it.

If you don't have a MAC, you don't have FCS.

	Andrew
Technical Details
Message-ID: <d3f2dc1c-9daf-4b5f-903b-657ae3f32647@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364055-linux-kernel-netdev=dewy.ru
References: <20261115-submit-acx00-phy-stats-v1-v5-0-ed81a7f54373@gmail.com> <20261115-submit-acx00-phy-stats-v1-v5-2-ed81a7f54373@gmail.com> <37e4b9b8-d381-448f-a2b3-b92d7bd9033d@lunn.ch> <CADvTj4qh8Pvss+xEwcjshodwv-yN6haP-9aaeRXg1ydSu5ibVg@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!2.eu.feeder.erje.net!feeder.erje.net!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364055-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 2/3] ethtool: add a PHY receive byte total
Date: Mon, 16 Nov 2026 05:39:55 +0100
Organization: Usenet Network
Message-ID: <d3f2dc1c-9daf-4b5f-903b-657ae3f32647@lunn.ch>
References: <20261115-submit-acx00-phy-stats-v1-v5-0-ed81a7f54373@gmail.com> <20261115-submit-acx00-phy-stats-v1-v5-2-ed81a7f54373@gmail.com> <37e4b9b8-d381-448f-a2b3-b92d7bd9033d@lunn.ch> <CADvTj4qh8Pvss+xEwcjshodwv-yN6haP-9aaeRXg1ydSu5ibVg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="1980345"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Txi5pQUwTuI1qndzriMewKN9Qbk= sha256:HnRO7zTAnOwLtm+e+puOnhf+zarJF6LkIXxFm2AujIo= sha1:U6bw7psAC+8fJ2XUbJIbDwlElTc= sha256:nDWAGXMpbruR8hGTob8GcKM++jheil+S+Bc3g0YKXWI=
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 A2A43114B24; Mon, 16 Nov 2026 07:40:37 +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 asmIRtfBizbU; Mon, 16 Nov 2026 07:40:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364055-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 02FDE114B22; Mon, 16 Nov 2026 07:40:21 +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 917D430462; Mon, 16 Nov 2026 04:40:18 +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=1794804018; b=sZtj/LvXzAUnCW56KTyN8C988zwzbTZxWRpYjLMHqTNNcsM/Nl5g8i6GNjgjeypUyHEG ur5Y9Nw9t+SdJkESkzDyOvAMWmOwDgUKxUycI4n3pBKEc8IXj35c1oKxhNnBGHdHreMGU qNEmMT1dWPTGwFRf1Ca6jjacj58qUtSjJXAUrQXq8RMBdfl8pv9ds22s9xlvXU9+847Ty gYb+BbeBdU5HH1q9yACHGWqiqWtHwBUBc41abMTdoxSrrDUF+B7W6aWJUa2SZycCbLTV0 /JJn+nFLEOlxLQWrECZRNf29i9Oi7bO9bmNc4chytqvgvJMWG1vax20YmKGeptVjnGA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794804018; 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=sWwEw+N/tUMf8KTGvE0p0U9rt4hRa07tRtC2pDcX9QQ=; b=pD1geKj6hbpd4a0TB9HAtowcYDHBb2HuKgHp/oapdPjsH9K2kzZXGX3TdAsVyTL2uU1N eqqKDCVccr+PWr4R5Xyq1f0/UmLXiB0xY1g3MI7vLd03wKlxhSjkdPtuKL7rDzpk8BzSS rzmBE9eDsAow7NtTYgpQZMUJop3H3NB7GcXq0Qfbr8ysEYVHYXuOC5QLlL3U8t5L1GPL2 k+PhA4/RJrkxtosKgLAyWYcG0jAwBr3LUXz/wPsz385gvffzlKvINqeVQsifilvVDwqW6 3J6j9zHcIODwxOL+FzdpDmNQQ6GLJQFHWEkby0LmhhWWAbnRepj3NU0nXlon15q/aIw==
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=XJ5kSQXC; 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 6B005606A32A; Mon, 16 Nov 2026 04:40:18 +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=XJ5kSQXC
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=1794804012; b=QGYpzKFxOJO9XPTU6+z5LSzp6QyTzq+ZNRHwRUzOHAFRrc/KMwx2XOGigF+nbEd+vmxO g6RheCA82Vwf8UddMyuge24NLCPMpVsWHHAzln4e+LDFNt5hYrmLaYrimuDyVOtcPycbs 2HOYVhP2UO9Z2T4L4FlCfKxVOEtXMoN7zOgQA/Sheo+gPXkCgw+m2bFB+f9tNxeUoSE1v cCnDIA4mhqCWrvBGNxMoE7wEan4VEVgQAxffix9hOWgdmAStu8m9qQYAJvILTj9/UZZpx YMbk9Rg6VPkv08oefE5uhtnPClmUAJQ7kcUitfveAVK8jDed/vIIMbnWb29mx6zzqog==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794804012; 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=sWwEw+N/tUMf8KTGvE0p0U9rt4hRa07tRtC2pDcX9QQ=; b=Ab1VB3LMP2cEzdeM9C0nrHwqeWLNbOTduVcCLnkEJjnTR2Wsqnrl5OSre8BKfU02rCmc N3/4wutyRe7tJih24GtzwOM60N1m7Bsr+sP2FU7i/vHugBjzCInrRPvywdkBUlwc4/Lun 3XRPQzLsF+M7kDYvkVK4+HtUb4CL4SdRzUB7EjhcHWo/gB2KCR5xYfRZGX/fpMFmsVviU pgaai2gS5TriQ8y5yRRxG8lRM5BRNZ6uQ8avSwx2xAllSLTHhWD2kFBj2ro9edF5w970Y m0/wgS7+kRqS9zhMXc7Fth/FBHNtpdqga5s9G4HX8ayPd/EGOX8OmiXrQ37wpseVhtg==
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=XJ5kSQXC; 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 45797606A31C; Mon, 16 Nov 2026 04:40:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 45797606A31C
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=sWwEw+N/tUMf8KTGvE0p0U9rt4hRa07tRtC2pDcX9QQ=; b=XJ 5kSQXCKrLHcytOzsrzR5/7W53+c0Bl9pbocsQlnrp/tuWm9v4XLcr+sA+MerGFYwCDogdU1Y0tELH uyqlvS8WX6VVuP1GRwDF59wa2/ujjheRl3i6BH5O5+DoFYgRbkPx8+QKmbgbILX4Ub5J/6qbKpWbU J6XIxPjOoTassmQ=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xSoVX-00Gnxf-Uc; Mon, 16 Nov 2026 05:39:55 +0100
X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, Oleksij Rempel <o.rempel@pengutronix.de>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@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: <CADvTj4qh8Pvss+xEwcjshodwv-yN6haP-9aaeRXg1ydSu5ibVg@mail.gmail.com>