Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1935286rwb; Wed, 26 Jul 2023 22:48:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlESwePTZ/7SNcKPEG+1e1wV+ZUs6k+EOHSqlmkTyCa49G7z2p03OvU5JF2DrfGFzKn8s8cA X-Received: by 2002:a05:6a20:2447:b0:13a:ccb9:d5b7 with SMTP id t7-20020a056a20244700b0013accb9d5b7mr4199317pzc.41.1690436925709; Wed, 26 Jul 2023 22:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690436925; cv=none; d=google.com; s=arc-20160816; b=omWwwR18e+mPTVTnv/DEr1hVuDW6/h7ajoD+i6lkT7Cb5yLmvVA31LHQd5NiuN3sPN w/EJ/EBqyhT3m70BtLeOYrwcR83Mpd3+Z5G9KyGX4vH+IAGv2Ee/HWNXAsUNdYn6tRVb cE0geUUHHIt54+63algyZifkY/nLiAk0uevWwlLQIl5XxfHOy/LXM7LVmXFjqjfLJbWe ZqHbhO2BU93fIyn0iZl3ZYDO1ZIa0WPYTU0cqX9BpsaM9z4cUeNT5KJnxJZnuvzB7+S0 SIoxu+xZn5JhuvcqW3CmQmINPnro07vg8q7HfLAmo9bwsjmY0bqpxuMdXFmFCM+RUyKY MI1g== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=b0XLCYPeMxL5GqXwy8aDkOrIMz6Dbp7sZF1xTbGQpqk=; fh=rdeDb5mDzeo0+6hBHtONoimeP0F5c2afGvCLyDNhXQc=; b=fEa4kG2GLzD/3RcCNzzxCW4XRV51G4XKyvEnJiUd6VAntWQVwglMpR3MnQrZxyydhz sx+oEsZhlLrrkr0dTzSMvLHLJUNiv0t8V3Qb7YSVNhnzDLEsLs/jQr/2RWPi64zbNdtl AewSHiiFX4qoh9sJ/92mhBujCg9OdqUNFdo9Q+iH1v9te6lc8PGw4QgGKZCmGeIYtwT1 adkhiO095PqRdVFIrkWTJlZ4t1W8v+xvkTfL6P5qcTLw62UzF3l3+Lv8QSDm4H/VEMAo 2EyBWbdFlUAsd2aJv6VYSQDRUBCI8OuG4d4laofJt1eEoXR5ChxCi4B4ufGZiIUSMbnb Ol3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FKF99HOS; 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 h185-20020a6383c2000000b0055ba8970e7asi633008pge.616.2023.07.26.22.48.33; Wed, 26 Jul 2023 22:48:45 -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=FKF99HOS; 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 S231221AbjG0Ewv (ORCPT + 99 others); Thu, 27 Jul 2023 00:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjG0Ewl (ORCPT ); Thu, 27 Jul 2023 00:52:41 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69CF2D5A; Wed, 26 Jul 2023 21:52:32 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36R4q3wl040175; Wed, 26 Jul 2023 23:52:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690433524; bh=b0XLCYPeMxL5GqXwy8aDkOrIMz6Dbp7sZF1xTbGQpqk=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=FKF99HOSHKYtw3Zq962zpPazvFR4SAaXEBT1aZw8vpaqZMFR/TkuGLoBShZAj6giN H7w4v2jC5QV3SjyQmca05s7i7A/g4K/jl3x2RV7ZuwjN/fKkOGZE0O/L5B9AWHWa3H Y5lAEwuQSZntFdocQ5nto1H1xY2R3F0zCprlxsPo= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36R4q3XW055887 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Jul 2023 23:52:03 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE114.ent.ti.com (10.64.6.35) 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 23:52:03 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) 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 23:52:03 -0500 Received: from [10.249.135.225] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36R4pv9h127551; Wed, 26 Jul 2023 23:51:58 -0500 Message-ID: <17b67407-0507-8978-0d6b-04578ca6b812@ti.com> Date: Thu, 27 Jul 2023 10:21:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [EXTERNAL] Re: [EXTERNAL] Re: [PATCH v11 07/10] net: ti: icssg-prueth: Add ICSSG Stats To: Jakub Kicinski CC: MD Danish Anwar , 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> <296b0e98-4012-09f6-84cd-6f87a85f095f@ti.com> <20230726083915.1323c501@kernel.org> Content-Language: en-US From: "Anwar, Md Danish" In-Reply-To: <20230726083915.1323c501@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 7/26/2023 9:09 PM, Jakub Kicinski wrote: > On Wed, 26 Jul 2023 16:06:06 +0530 Md Danish Anwar wrote: >>> 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. > > The buckets in the ethtool API are up to the device to define. > Driver returns bucket ranges via struct ethtool_rmon_hist_range > from struct ethtool_ops::get_rmon_stats. Sure Jakub I will try to implement this using ethtool_ops::get_rmon_stats. -- Thanks and Regards, Md Danish Anwar