Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp530153rwb; Tue, 25 Jul 2023 21:06:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFORU1vRPGvPByJURNCItzPEPf3GX99B78/H6L4v9CCJqd83SA0DkHFSk6Bo/i50M2RSjr2 X-Received: by 2002:a05:6a00:808:b0:682:37be:c9fe with SMTP id m8-20020a056a00080800b0068237bec9femr1486976pfk.10.1690344364193; Tue, 25 Jul 2023 21:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690344364; cv=none; d=google.com; s=arc-20160816; b=1FUkFCbrC8+D1Q0NlZ41yCjUAa78LnNFz/G+gBGEd9dZMX6oKljo6P3JfZzfvAtuZP uHQFDhcVBuwG/fIc61EbqjFs4bzgtZUKiRQ4Z0XozRxpD6xj+KUfqkJI6VLkojdnMW9T j9q8CxgKWRmqvb2xdli9DdgANNQ/F9OWQcRCrGr4Kn2YRdkoLHlFGSESyN8jSSWUmS/H 6yYzxjIWkFFmz2oUKm72B6C/mFDXuEPTc3ewrL/Xv1t3eDDGrflIkS346/EUPgtNggwD Tb5LpT/X36alpgyjubqYFpRSdJjfAb0cPEzpOqqYkr6V8LnbNmmRZOUSIijn3+dEwj8a EIAg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oAdCWXsYs46oJkc2j3eoK57NGWEAO+RexEXPc0Tlt88=; fh=gz4ObIMc4NeQCHdZ3rWVwlgFHb+bHuhROoav4WyE1M4=; b=lDZQg4RIvmFPmYIflo0QhdK7u7uEImtOI1stYFsxDFakoryRxEQJkbIzsbUQaJ2MR8 KLShC81N7gy+X/ucO99nHDkqBSQYfOHsyKp6zXIpjxybDBT0jHGOV5ix7vBm2HxC1LJL 1KUSNlK/8IDBIr1DALdNzQ4gQmR4AiljhloXudN4LiMhKkXgScpPEmPGaLeDeykX3JEF Onb49LR1b3B+Q38v5hTxwUiW/geDdR7+Bgd++Og2JGqc9MdU9QvA8bR0ZVmGVVSKEUZM fS3RoktVoiBcNsPbLbT+k7CshJKOWrUnaRXsmC68dy/O3BeTftsmr6riW1oKjxTPHSQ2 TKdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UapXkKZW; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a637051000000b00543b16ecfa7si12548376pgn.172.2023.07.25.21.05.51; Tue, 25 Jul 2023 21:06:04 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=UapXkKZW; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbjGZDuU (ORCPT + 99 others); Tue, 25 Jul 2023 23:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjGZDuS (ORCPT ); Tue, 25 Jul 2023 23:50:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2AC32697; Tue, 25 Jul 2023 20:50:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 32D7D611CA; Wed, 26 Jul 2023 03:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF0ACC433C8; Wed, 26 Jul 2023 03:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690343416; bh=ftcsCLg9opVFQHziuDWuK9Vb2WB4UKQzFSr8yuWJn+k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UapXkKZWjB5irsf6WvxvkX0NxSOH8OxcvH33it7pEs+5uhDVMfMhCagyW4tz4giqF 8F1BRl81hoBX7zabo/6LlCebQQbH5ocfRU6vzgwd7JqVSgHttTKVU75niVKUa1yMjk LzBzzKZkKBl73T59+35uzhHskhG/+jYXuA19usbjQ9y9urUI7x7Fq9EYE+hFqIFvVA pZN7xONXstZnPTh6+8OkBw/Zouh+akDslk6ta3f/mZGEwB8SlGInrRIh7McBit9eqJ nMDoyyyOK0zAZU/de0k+LkAPAsr1cM6uf985ELbQUXmbpzqdCJHcvGShTYmOr2WzwN fpr38k32ZvgTA== Date: Tue, 25 Jul 2023 20:50:14 -0700 From: Jakub Kicinski To: MD Danish Anwar Cc: Randy Dunlap , Roger Quadros , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Eric Dumazet , "David S. Miller" , , , , , , , Subject: Re: [PATCH v11 07/10] net: ti: icssg-prueth: Add ICSSG Stats Message-ID: <20230725205014.04e4bba3@kernel.org> In-Reply-To: <20230724112934.2637802-8-danishanwar@ti.com> References: <20230724112934.2637802-1-danishanwar@ti.com> <20230724112934.2637802-8-danishanwar@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, 24 Jul 2023 16:59:31 +0530 MD Danish Anwar wrote: > + /* Rx */ > + ICSSG_STATS(rx_packets, true), > + ICSSG_STATS(rx_broadcast_frames, false), > + ICSSG_STATS(rx_multicast_frames, false), There is a standard stat for mcast. > + ICSSG_STATS(rx_crc_errors, true), > + ICSSG_STATS(rx_mii_error_frames, false), > + ICSSG_STATS(rx_odd_nibble_frames, false), > + ICSSG_STATS(rx_frame_max_size, false), > + ICSSG_STATS(rx_max_size_error_frames, false), > + ICSSG_STATS(rx_frame_min_size, false), > + ICSSG_STATS(rx_min_size_error_frames, false), > + ICSSG_STATS(rx_over_errors, true), > + ICSSG_STATS(rx_class0_hits, false), > + ICSSG_STATS(rx_class1_hits, false), > + ICSSG_STATS(rx_class2_hits, false), > + ICSSG_STATS(rx_class3_hits, false), > + ICSSG_STATS(rx_class4_hits, false), > + ICSSG_STATS(rx_class5_hits, false), > + ICSSG_STATS(rx_class6_hits, false), > + ICSSG_STATS(rx_class7_hits, false), > + ICSSG_STATS(rx_class8_hits, false), > + ICSSG_STATS(rx_class9_hits, false), > + ICSSG_STATS(rx_class10_hits, false), > + ICSSG_STATS(rx_class11_hits, false), > + ICSSG_STATS(rx_class12_hits, false), > + ICSSG_STATS(rx_class13_hits, false), > + ICSSG_STATS(rx_class14_hits, false), > + ICSSG_STATS(rx_class15_hits, false), > + ICSSG_STATS(rx_smd_frags, false), > + ICSSG_STATS(rx_bucket1_size, false), > + ICSSG_STATS(rx_bucket2_size, false), > + ICSSG_STATS(rx_bucket3_size, false), > + ICSSG_STATS(rx_bucket4_size, false), Are the bucket sizes configurable? Can we set the bucket sizes to standard RMON ones and use ethtool RMON stats?