Article View: linux.kernel.netdev
Article #7262Re: [PATCH net 2/2] net: dsa: mv88e6xxx: fix 88E6171 statistics type
From: Andrew Lunn
Date: Sun, 25 Oct 2026 23:19
Date: Sun, 25 Oct 2026 23:19
24 lines
9441 bytes
9441 bytes
On Sat, Oct 24, 2026 at 11:21:24AM -0700, Florian Fainelli wrote:
> The 88E6171 uses the 6095 statistics operations, which advertise and name
> BANK0 and PORT counters. Its stats_type bitmap instead selects BANK0 and
> BANK1. Since statistics collection started using that bitmap, it has
> written a different set of counters from the one advertised to ethtool.
>
> For this chip, get_sset_count() accounts for 30 BANK0 counters, three
> PORT counters and five ATU/VTU counters. Collection instead writes 30
> BANK0 counters, 26 BANK1 counters and five ATU/VTU counters: 61 entries
> rather than the advertised 38. This mislabels the tail of the returned
> statistics and writes past the advertised statistics buffer.
>
> Select BANK0 and PORT counters to match the chip's statistics operations
> and restore the filter used before the bitmap was introduced. Tested on
> an EA4500, where the two-bridge forwarding and multicast snooping tests
> now pass their hardware counter checks.
>
> Fixes: 5595e3613ea7 ("dsa: mv88e6xxx: Move available stats into info structure")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<1b33f916-18ea-46d7-b6b2-1f14d3ef6afe@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351626-linux-kernel-netdev=dewy.ruReferences:
<20261024182124.296988-1-f.fainelli@gmail.com> <20261024182124.296988-3-f.fainelli@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351626-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 2/2] net: dsa: mv88e6xxx: fix 88E6171 statistics type Date: Mon, 26 Oct 2026 00:19:47 +0100 Organization: Usenet Network Message-ID: <1b33f916-18ea-46d7-b6b2-1f14d3ef6afe@lunn.ch> References: <20261024182124.296988-1-f.fainelli@gmail.com> <20261024182124.296988-3-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1168173"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:sVyz/LQg/kwmqcaQkjDHCe6doWQ= sha256:RPR1I08CfzyuCUr0GCZWuSbUBlZTNFgPo9RTCBVPcYk= sha1:39nSG/IsBqmzc8TIlGyJKRjVMDU= sha256:3xE4LM2FlncMIFso/b7DQH6zRfxPu+VrUbrMjhZQjWw= 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 61B89125B86; Mon, 26 Oct 2026 02:20:46 +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.25, 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 (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 VvIOq2pCCeIv; Mon, 26 Oct 2026 02:20:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351626-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 433D7125B7E; Mon, 26 Oct 2026 02:20:32 +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 441CB306E3; Sun, 25 Oct 2026 23:20: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=1792970401; b=eP4joGse/g0TtpezFs7435B39/uYue7yTSO4PMMbQQVQFiJ+7Baf4EOIHUsX6kUq800g ab9uSDmIgd9gG1zQvKZjLBNGg+fn0m6DsUJEL/x1cWVWUaO/rZt1o6+A1AKmQ4maeJkpr dHVGUsQpsmndaNzly/u2GbLevSJdhTHlAEjIBvV2fHla2YfeHgSNJoEeCZx9p7OG0rVDJ MUi2+ijgT+s3ud93lY4DkTkhm0doTZUfff341InwuKJ/co3wgtTciDY3WkFoveGvNhZRs pbhHQaHIsjZj8hV18eP+Kf6bjsze/e4FN47MSA1nwMaxh4ImtBEGOKGHA1jWPPi/Lyg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792970401; 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=BXYLJY9K1cAyRPcEkZGWWS3NjbVkZ4Vrb3MP3o5lY2s=; b=PmgYTQSVxgc4ffiM6nQs5tNbTKsocdCTJS3mm9NzSg0GBl1Oq6x/CSdBW16qjEWhexxi mGB+T5hP1Ulc1tgj2XjfrVMvQkFQm+QCANSwmE0jS1hd96jKGb6wTziuLSW9RBJL6Fc88 8/w1zRSQ7U150N6Tq89kA7eInLvMAy4VRxKxPsqAc8khwJSYtNRYXQV5oD5/D5/X9BFNS tX4ZUIsGQq2NHYhzrmZX9ech6eFPItJyJS+8D8qTRYrVoH2Ow9jDwHEtw3O149Sly4iow y9Jj0l+GYXlMt+erJA0FluGsdCSDCE3pa9NM9nY1K+9dBqzmCAXMAq1eR+ceR+MQS4A== 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=HLfAQquV; 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 1AC38606A324; Sun, 25 Oct 2026 23:20:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HLfAQquV 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=1792970395; b=IdjU0GSJ++Ed2HoLn1DqvOnv60fd0S07Os67mVc0PO7MJABuQeq+CcFSXMPm/RNthbg0 +enc/mXwXa7p4rNC+nEAyk+aup0sLM4W8DdHVVuHchkypCD+sO2O8a6rBp/pLMEfuZKxB MT2dGJDuRMXPzv5m4cUt5SSwPt4HPwH1HflriuM2uk0uvv8d7a/a/VE5wIIKf6ZKwj2gY PyITnojicbQONUO0Ov12EUcFwQLfZRFvnchl9S8Mv8Up9bl/2bkMJiNJJtEBiailPzABL bMtgPi0cXUNNsf5fnFNVHUZLX6lNgthwvOrhovBUANmSsZ3FuscvkdZ322ozD1CE5Ig== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792970395; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=BXYLJY9K1cAyRPcEkZGWWS3NjbVkZ4Vrb3MP3o5lY2s=; b=DpOOjyXsG+l9Goslm7oK8x8lDuWzazHQHK+fiHsdDLLGWT1Uv8JVOT7dETFL1OVuQuLK x1tlhebGJ8Jpkb+TIrEs+I2KeRkOQ+WtWEa85LHJTArgC+XhTl/jJm0Kb2jnN0aCjRp2H /lc2gt45TD07hb1iZfSlmiWM3a7oB5mBZy26jrcpm9eVPWAJHtTQBcJkHCjxDa6rDyAqo kXrV8kkhiLNFkjCtE5NlKKmQ6quKB3HYnoV7RL7ti6aEwadRNQYJaQGq77cNs1E0zVrCQ 3iWsw/Tj6tXkG9/gDG632tjpec69ngWDgPSkCy+JcqMLcmfWy+tGtnXEZqnTAHERqag== 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=HLfAQquV; 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 91B68606A31A; Sun, 25 Oct 2026 23:19:54 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91B68606A31A 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=BXYLJY9K1cAyRPcEkZGWWS3NjbVkZ4Vrb3MP3o5lY2s=; b=HLfAQquVTjqmBqbZcxjCEleMCZ UmJ33ObBPuHqBaABeTKe8AsVWsP3s1T2yfAQBDRLO3QpBrvXXvEWMDW5EwSN6zLkQ9cYuidGO7CjF RBdKYblXCuYqjYfF1XHU8Hd09zSl37sFb+/rh0KNIPzh74BY61pVc75UrV4E6yFgDd+M=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xL7VD-00Cj3g-DB; Mon, 26 Oct 2026 00:19:47 +0100 X-Cc: netdev@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, open list <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: <20261024182124.296988-3-f.fainelli@gmail.com>