From patchwork Mon Nov 28 19:35:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry Ray X-Patchwork-Id: 26938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5901670wrr; Mon, 28 Nov 2022 11:37:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XmWYLexpbN2LZrr69P5qLA+zSwlFtzkNh3Np/7VvJ7xsFYiCQmLR54JJwr07vqLyRmvpY X-Received: by 2002:a17:906:ee2:b0:78d:3f96:b7aa with SMTP id x2-20020a1709060ee200b0078d3f96b7aamr30810288eji.74.1669664251544; Mon, 28 Nov 2022 11:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669664251; cv=none; d=google.com; s=arc-20160816; b=LV3//x6ABHIGCF6W9J7YAPGwarR1sUEHu4w3OMpOnNy9DcZblm25ZgkBRYzy12g75R 4tXKtt8RVoi+e4zjnto9KO3cr4TPAwoycotlBRdR9nybhxMUkE2RyQEjWSEmjFZBMyXx /sMI6F2i6rO9l48K06KQEcz5FVW+TqOeJgnmX1L7N4f5GnEZxa9NEYVzPLGcaBvYr/NE aun29YyYomGTnrUG1pMHm4Ni311esVnGGF06qkeV/ZUY9hbfMaDMwyGaQhxpEjhDpS/F kcOkv0H1YaXDr0n0hyN+jXcjEtF1cRaupoa2rrKCoF0PJd6aVflZmGr0Nq6fMbTxbJcP DbGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=OPALOsqk80zZV0+csMLCQdbh6AH5oA3+7ltMk2mgol0=; b=djb2XuMaepJAJ45sOMyb1Nawd4o6wL49qb74thgkjx+I3gRgllkExuvvMLB3mWs5vb lSscEgwiQXwlRsuyeKo8/zKv0iRkXaL5hFxvWObaa+s1D+guspk5NlzY/t49qtPZMYXX 5wIm9YzD2JCq7oOM4zjFpe6ZP+zyfaYKzqgj0KZvE3zUysr9uliJ7Rao5/G6o9baBExv 6uzwbJe6MDJfxV4mlfuoKVKbX08gnicKEV2Z0B4knlD2Z0T7DHcfOQltv64sgYGTCGQN V6RPhQvK2J+rsqN1FduyOSxqEzmG/BKoULuOlsX1WTF2kVVzotF//MJLu9MSIieb1KIZ +aCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="AvlJNj/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv20-20020a17090760d400b007a4feae7ae7si12019065ejc.575.2022.11.28.11.37.06; Mon, 28 Nov 2022 11:37:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="AvlJNj/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232801AbiK1TgI (ORCPT + 99 others); Mon, 28 Nov 2022 14:36:08 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750769862438934181?= X-GMAIL-MSGID: =?utf-8?q?1750769862438934181?= Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303") 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[] = { { .offset = LAN9303_MAC_TX_BRDCST_CNT_0, .name = "TxBroad", }, { .offset = LAN9303_MAC_TX_PAUSE_CNT_0, .name = "TxPause", }, { .offset = LAN9303_MAC_TX_MULCST_CNT_0, .name = "TxMulti", }, - { .offset = LAN9303_MAC_RX_UNDSZE_CNT_0, .name = "TxUnderRun", }, + { .offset = LAN9303_MAC_RX_UNDSZE_CNT_0, .name = "RxShort", }, { .offset = LAN9303_MAC_TX_64_CNT_0, .name = "Tx64Byte", }, { .offset = LAN9303_MAC_TX_127_CNT_0, .name = "Tx128Byte", }, { .offset = LAN9303_MAC_TX_255_CNT_0, .name = "Tx256Byte", },