From nobody Fri Sep 19 04:03:01 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A7FDC4332F for ; Mon, 28 Nov 2022 19:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232832AbiK1TgJ (ORCPT ); Mon, 28 Nov 2022 14:36:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiK1TgH (ORCPT ); Mon, 28 Nov 2022 14:36:07 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 272C2289; Mon, 28 Nov 2022 11:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669664162; x=1701200162; h=from:to:subject:date:message-id:mime-version; bh=wD2M8s3Cr8kF2HD+rXY4pLjxb8HYCtk76CEYAlmGrcg=; b=AvlJNj/KzJi2qwKj/TAJ77qSbNBf0r0jH3OGi1oCE5lM92UodAx40Maz tI7CI4RBbUpww8iZppPvaAV5PSMgS8Xq4xpz0y8iNi4s675YMhjOuC4vv vjr3TOW7MlIvDsXRZkmCRTnD4vO4C5N5+EMva4xTs8UDkXZWTaQIse+m1 zbUjekx5ZzEis9pLGU/gP/ADTSm1gjf+9T7TGK3ppZFhRO2FXeBs9nKTm ZZjznQ43anYrTShYIWYVhLD7GQkyaqM49uE81Oa/NH53ysIiJ8RqHSM8d THDgtKhgceAigUUSX679ffdpUnrKTXJ5fgIOf5YudKTiHc7TR5uXwH6Cc Q==; X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="190878452" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Nov 2022 12:36:02 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Mon, 28 Nov 2022 12:36:02 -0700 Received: from AUS-LT-C33025.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Mon, 28 Nov 2022 12:36:00 -0700 From: Jerry Ray To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" , , , Jerry Ray Subject: [net PATCH] dsa: lan9303: Correct stat name Date: Mon, 28 Nov 2022 13:35:59 -0600 Message-ID: <20221128193559.6572-1-jerry.ray@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9= 303") This patch changes the reported ethtool statistics for the lan9303 family of parts covered by this driver. The TxUnderRun statistic label is renamed to RxShort to accurately reflect what stat the device is reporting. I did not reorder the statistics as that might cause problems with existing user code that are expecting the stats at a certain offset. Signed-off-by: Jerry Ray Reviewed-by: Florian Fainelli --- drivers/net/dsa/lan9303-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index 438e46af03e9..80f07bd20593 100644 --- a/drivers/net/dsa/lan9303-core.c +++ b/drivers/net/dsa/lan9303-core.c @@ -961,7 +961,7 @@ static const struct lan9303_mib_desc lan9303_mib[] =3D { { .offset =3D LAN9303_MAC_TX_BRDCST_CNT_0, .name =3D "TxBroad", }, { .offset =3D LAN9303_MAC_TX_PAUSE_CNT_0, .name =3D "TxPause", }, { .offset =3D LAN9303_MAC_TX_MULCST_CNT_0, .name =3D "TxMulti", }, - { .offset =3D LAN9303_MAC_RX_UNDSZE_CNT_0, .name =3D "TxUnderRun", }, + { .offset =3D LAN9303_MAC_RX_UNDSZE_CNT_0, .name =3D "RxShort", }, { .offset =3D LAN9303_MAC_TX_64_CNT_0, .name =3D "Tx64Byte", }, { .offset =3D LAN9303_MAC_TX_127_CNT_0, .name =3D "Tx128Byte", }, { .offset =3D LAN9303_MAC_TX_255_CNT_0, .name =3D "Tx256Byte", }, --=20 2.17.1