Message ID | 20230217110211.433505-1-rakesh.sankaranarayanan@microchip.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp822765wrn; Fri, 17 Feb 2023 03:03:51 -0800 (PST) X-Google-Smtp-Source: AK7set+ATbOjW9Be2e1ynacvJHuwOlpsTt6Ow0kZ0ifR6nZamrgu6GI5buDBmCR1z/ILISxd/eBD X-Received: by 2002:a50:e708:0:b0:4aa:b7ac:e0d2 with SMTP id a8-20020a50e708000000b004aab7ace0d2mr8952840edn.19.1676631831461; Fri, 17 Feb 2023 03:03:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676631831; cv=none; d=google.com; s=arc-20160816; b=yAUAuCLpA66J6fINoaS+uq9KurepO0BE9ApweZiBbg4/FB6Gc7GafQJ14DkJ6GM+t3 /1a81UkYFIGlSy8biaqClqNLjJiksSyDKf5HYAakn2ZYFSQIzctlxTNnZVXPyJtyLjHj 5HDamV1kADxnkS8KaQVBaizlhOKq5RZtg0xpy+Z7RBtiHYAPPsPj8a/07d8+Y7QzGmbI /laaFhEBjBRa2YqcuZFY5J8u5Wje9+b1cynDLJ3wAq8YDsEA44MwtzBpDaZTli9xMaB8 GbrJTL2C5CsbGyFEjZfbklSsuZJ7+Atdj/uhYFyjjXwh2fB+q6PDgd3j6CR/eTZbFQoL QqoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1z8dPOffmjdPsK5Jvnmg0g29U7B8jfIXg8RcC0BjnqA=; b=rbgHqwEPrvBjGSIw5pRIa8eelwBpxZQJyvBx6BpmO+qdWKdFTznJmd6ln0nkN2NU+J 9CW+ACY9gmpiE6WNnh8fVS0xpc+rQinLj+BGmAJaAm+smMLio/Jjr4Wb+9lLXoL1ch// 0Id4JjnFoWdFDhA1FSZjOQjpMj2+ZGiDJjfaNmSNis5pUZnLQTYxLCV12PFSZep7vr60 6R39V/jjSKBvQT3I7go0abaqNUgPsuXjiDeSyIPKaoRjg2ZuFrNQCJHsdCdNi6Tm987i 1+qZeRqLvG1lvnQOKBtHJu1TE3bS5OKqvjEt+06aEFYGyzA9LfGfybQwqEnlXKRoN7VY 4X7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=YuuPJbRa; 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 f2-20020a056402150200b004ab162a8415si5144281edw.283.2023.02.17.03.03.28; Fri, 17 Feb 2023 03:03:51 -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=YuuPJbRa; 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 S229779AbjBQLB7 (ORCPT <rfc822;aimixsaka@gmail.com> + 99 others); Fri, 17 Feb 2023 06:01:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjBQLBs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Feb 2023 06:01:48 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED4ED3028D; Fri, 17 Feb 2023 03:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676631707; x=1708167707; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+stRTbY/L8meiP8dwWYv6r3u8FQGcbCZds6zDh2+IuY=; b=YuuPJbRa6VyP3rsYbCSJlN090WLQ0X9ZkOhx3JBmeS3Py7NKkLi1Ziiz LgAHGVaSrHKVWVYOCoZmzCP62XBxS3Xuyc6l2bF0IdJAdzjZ3Ag/H0+x1 L9pkf+lBDOaMM9dN9cAnrd8/BTn6I0v4mXvocJ1317kNBnZlujqBIWtnw Inshnjyd7nmNISTx4B10oHEJTi9CaywF2Uk6VMhllcDDixmzVr87/qhgp TJguX8B1nUByzFE7D6p7otk+1gZs7Xk8pDFTd46flcm19E+mxHQM3GwBf om6lAmIJjrR5fNaYSThsfT+zJA0v+Ze12lts/7pSDdfvHzcPAJYwj8U2E g==; X-IronPort-AV: E=Sophos;i="5.97,304,1669100400"; d="scan'208";a="197482795" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Feb 2023 04:01:46 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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.16; Fri, 17 Feb 2023 04:01:41 -0700 Received: from che-lt-i67786lx.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Fri, 17 Feb 2023 04:01:37 -0700 From: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <woojung.huh@microchip.com>, <UNGLinuxDriver@microchip.com>, <andrew@lunn.ch>, <f.fainelli@gmail.com>, <olteanv@gmail.com>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com> Subject: [PATCH v2 net-next 0/5] add ethtool categorized statistics Date: Fri, 17 Feb 2023 16:32:06 +0530 Message-ID: <20230217110211.433505-1-rakesh.sankaranarayanan@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758075899160991884?= X-GMAIL-MSGID: =?utf-8?q?1758075899160991884?= |
Series |
add ethtool categorized statistics
|
|
Message
Rakesh Sankaranarayanan
Feb. 17, 2023, 11:02 a.m. UTC
Patch series contain following changes: - add categorized ethtool statistics for Microchip KSZ series switches, support "eth-mac", "eth-phy", "eth-ctrl", "rmon" parameters with ethtool statistics command. mib parameter index are same for all KSZ family switches except KSZ8830. So, functions can be re-used across all KSZ Families (except KSZ8830) and LAN937x series. Create separate functions for KSZ8830 with their mib parameters. - Remove num_alus member from ksz_chip_data structure since it is unused v2 - updated all constants as capital - removed counters that are not supported in hardware - updated the FramesTransmittedOK and OctetsTransmittedOK counters as per standards v1 - Initial submission Rakesh Sankaranarayanan (5): net: dsa: microchip: add rmon grouping for ethtool statistics net: dsa: microchip: add eth ctrl grouping for ethtool statistics net: dsa: microchip: add eth mac grouping for ethtool statistics net: dsa: microchip: add eth phy grouping for ethtool statistics net: dsa: microchip: remove num_alus_variable drivers/net/dsa/microchip/Makefile | 1 + drivers/net/dsa/microchip/ksz_common.c | 70 +++-- drivers/net/dsa/microchip/ksz_common.h | 10 +- drivers/net/dsa/microchip/ksz_ethtool.c | 348 ++++++++++++++++++++++++ drivers/net/dsa/microchip/ksz_ethtool.h | 31 +++ 5 files changed, 443 insertions(+), 17 deletions(-) create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.c create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.h
Comments
From: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com> Date: Fri, 17 Feb 2023 16:32:06 +0530 > [PATCH v2 net-next 0/5] add ethtool categorized statistics I'd like to see the cover letter's subject prefixed as well, e.g. [PATCH v2 net-next 0/5] net: dsa: microchip: add ethtool categorized statistics ...or so, depending on the usual prefix for ksz. Otherwise, it looks like you're adding something generic and only realize it targets a particular driver only after opening the thread itself. > Patch series contain following changes: > - add categorized ethtool statistics for Microchip KSZ series switches, > support "eth-mac", "eth-phy", "eth-ctrl", "rmon" parameters with > ethtool statistics command. mib parameter index are same for all > KSZ family switches except KSZ8830. So, functions can be re-used > across all KSZ Families (except KSZ8830) and LAN937x series. Create > separate functions for KSZ8830 with their mib parameters. > - Remove num_alus member from ksz_chip_data structure since it is unused > > v2 > - updated all constants as capital > - removed counters that are not supported in hardware > - updated the FramesTransmittedOK and OctetsTransmittedOK counters as > per standards > > v1 > - Initial submission > > Rakesh Sankaranarayanan (5): > net: dsa: microchip: add rmon grouping for ethtool statistics > net: dsa: microchip: add eth ctrl grouping for ethtool statistics > net: dsa: microchip: add eth mac grouping for ethtool statistics > net: dsa: microchip: add eth phy grouping for ethtool statistics > net: dsa: microchip: remove num_alus_variable > > drivers/net/dsa/microchip/Makefile | 1 + > drivers/net/dsa/microchip/ksz_common.c | 70 +++-- > drivers/net/dsa/microchip/ksz_common.h | 10 +- > drivers/net/dsa/microchip/ksz_ethtool.c | 348 ++++++++++++++++++++++++ > drivers/net/dsa/microchip/ksz_ethtool.h | 31 +++ > 5 files changed, 443 insertions(+), 17 deletions(-) > create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.c > create mode 100644 drivers/net/dsa/microchip/ksz_ethtool.h > Thanks, Olek
On Fri, Feb 17, 2023 at 03:54:48PM +0100, Alexander Lobakin wrote: > From: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com> > Date: Fri, 17 Feb 2023 16:32:06 +0530 > > > [PATCH v2 net-next 0/5] add ethtool categorized statistics > > I'd like to see the cover letter's subject prefixed as well, e.g. > > [PATCH v2 net-next 0/5] net: dsa: microchip: add ethtool categorized > statistics > > ...or so, depending on the usual prefix for ksz. > Otherwise, it looks like you're adding something generic and only > realize it targets a particular driver only after opening the thread itself. +1 some people just look at the KSZ DSA driver all day, and so in their mind, it then becomes implicit in the subject. But the cover letter description gets turned by the netdev maintainers into a branch name for a merge commit, see: fa15072b650a Merge branch 'sfc-devlink-support-for-ef100' e9ab2559e2c5 Merge branch 'net-sched-transition-actions-to-pcpu-stats-and-rcu' 10d13421a6ae Merge branch 'net-core-commmon-prints-for-promisc' a1d83abc8f2f Merge branch 'net-sched-retire-some-tc-qdiscs-and-classifiers' and so, the naming of the cover letter has non-zero importance. I agree that the contents of this patch set is absolutely disappointing for someone reading the title and expecting some new ethtool counters.