Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp945572rwb; Wed, 26 Jul 2023 05:32:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFt3K2aHKM8EmBo+OJZuF+SWvoJ0pmnQQnqty4klIajnCoA6mHNlQvjbTIqqxhQGgq0cgYE X-Received: by 2002:aa7:cd65:0:b0:51d:9ddf:f0f6 with SMTP id ca5-20020aa7cd65000000b0051d9ddff0f6mr1429826edb.36.1690374757169; Wed, 26 Jul 2023 05:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690374757; cv=none; d=google.com; s=arc-20160816; b=e5ty6UBKr8eDmjh3cdpDstENmyk2PFSUbw/RAq/Yx0y8D5OydjVDFKnWUrmXYsOHBW YJXZrjvpFv7/bmKzMNQiN5a5ql/TSjZRmenM5z8WGOa+tOtI9IcJmRKcrIE2oS9CMayd T9Mjanx1zYgGN9YgJMQl784SRnONzHtzfSrljoRsok1d5WjQXniv82zyI+XKKQ8hJZ3o Lk8m2FhM3grz7YwRByMHIJqCp5GsB8aJBxSbWqORB5mGlfMgBDjy+MEuyl/3bJ1csfNy HSLzP2+ytFRuDCo6Lu4UBwceiYCpyphtTGlh2HR0DJg0nhcbD9U/2kg9cgsw+Q5eTNEB DTzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=AsQ7eL3/H2JJHOml5th1RT/qIatR0oms1Ab+63AsSdY=; fh=hlY11OEE+fnM7aSDAOzxH9pa7tv2ySCZ2qRDuJy7lHU=; b=IkZXaPZJLINb2nRAY01FCqYoIOeltsLthCYG8xjKWZowiFeQGtg3MXkX53meQ+oU7y UXgz863P7Do77Yy4HRu4o9eBD1OKNU1Gy01Gq08fW2sXc9EsBGJ/jrjl1605WfHJuJ8m Q8lMZm51tuRKkKngSInXaabm9FQJDwyga6wSWymr9QjPKtLHFmOy02xGG97WRjH2zb3S bMGe65Lz35nvYeakFHz5ve/6VEbtitkfoPJzQb+dJ+WQX0PyKnEbmIOEq7dEUPLcqr8P AV4gVvfpgoiF8M/gPhibz0gGmsQ4vtw++/up9L/TwlMc82efSRU/AOK2IpYvkmUaVcE9 qfng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oO2vlJsR; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7da0b000000b005227823a722si558184eds.128.2023.07.26.05.32.02; Wed, 26 Jul 2023 05:32:37 -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=@ti.com header.s=ti-com-17Q1 header.b=oO2vlJsR; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233828AbjGZKgd (ORCPT + 99 others); Wed, 26 Jul 2023 06:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbjGZKgc (ORCPT ); Wed, 26 Jul 2023 06:36:32 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 118EF2126; Wed, 26 Jul 2023 03:36:30 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36QAaDvp045912; Wed, 26 Jul 2023 05:36:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690367773; bh=AsQ7eL3/H2JJHOml5th1RT/qIatR0oms1Ab+63AsSdY=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=oO2vlJsRYavoQbpnR7BH7gv/D6zsLsuKLq8VVi5DAQcF5dI92qLsXfFhlduzSrmeH ArZM4IJpCeczHcpAVUPJDp8KPKaVcK0Lo5i2oIt3GC/hjn3Gth5hPMbAnAnK6d49+b cwvbg8c/vCB7LtynoQBuBk2cuAEcXDjkBhsWlmO4= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36QAaDhR058238 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Jul 2023 05:36:13 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 26 Jul 2023 05:36:13 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 26 Jul 2023 05:36:13 -0500 Received: from [172.24.227.217] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36QAa7iP077859; Wed, 26 Jul 2023 05:36:07 -0500 Message-ID: <296b0e98-4012-09f6-84cd-6f87a85f095f@ti.com> Date: Wed, 26 Jul 2023 16:06:06 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [EXTERNAL] Re: [PATCH v11 07/10] net: ti: icssg-prueth: Add ICSSG Stats Content-Language: en-US To: Jakub Kicinski , 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" , , , , , , , References: <20230724112934.2637802-1-danishanwar@ti.com> <20230724112934.2637802-8-danishanwar@ti.com> <20230725205014.04e4bba3@kernel.org> From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: <20230725205014.04e4bba3@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi Jakub On 26/07/23 9:20 am, Jakub Kicinski wrote: > 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. > Sure. I will add multicast stats via .ndo_get_stats64 instead of ethtool. >> + 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? The bucket sizes are not configurable. Bucket size is read from hardware and is fixed. I don't think we can configure bucket size and use ethtool RMON stats. It's better to dump bucket sizes via ethtool -S. -- Thanks and Regards, Danish.