Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp812502rwb; Wed, 7 Dec 2022 05:26:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hc76FtYCwxiRq0zs72ab1eDbV7j1y1Zc67Q/MDeo1sLaTlYLDbIVhc6YevTkQ/du6YS3U X-Received: by 2002:a05:6402:221b:b0:46c:6707:1036 with SMTP id cq27-20020a056402221b00b0046c67071036mr15883289edb.308.1670419577506; Wed, 07 Dec 2022 05:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670419577; cv=none; d=google.com; s=arc-20160816; b=iUZuWs36XQvnbMpE4jgm6f4u6OU4LLo/GyEQKdfGLsaJbp8DZ3xQz5xXgZHmjr+sLm zFqZ0srOAuzlwz9Zev0B/HzUYark1ZX5AaY2wkglQbLGQo0FqxyBAX0AfxMMUaNWt3w1 MGEzOJlf5x1HivR1RFbW6A1+d61S3wloYiOrB8CIxsajRFU3gpQYeLT8CA6NUjkxz10s XrEsKrqKUmJfdJ16mS9H1cq5V+1tk3TqTlS7o5zdlIuGzJ+z8yDsXhRQwqLkj8Vdu51k lbOEOI1o0k6Lq69YynDqCj0XXMgBflC3ZzEl4qctwPvrHpcNdgMOhZirY2AL4faVIwuN zGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Oue94+Ik3eRv7cdb5g71pdk/j0xTlBWe2Mf1/zKEImI=; b=Kdrz2lvOm4JZx03NXLhNclggc+lvXGAkB6B9WPvowRwbLNjdS/z2EghMuKqGAvxOaC DI97F6xggxE0TkyAvzXIb7380Pw9G42W8LG6awMsm5cr77V5neU+db6a6E32GRK6GdSF teNbgufHoi0Fpe8XhOrUNCH6Hp0Zo41srf1zfqm+rkoEIbxmRWxLrBSc2uxaKmAnlLis gUe3bVzWXI7WhqJn+eT49ScPuhlm5gyBzw3/CvzdAID1iD7JdN9r42DA9vhw5Yjqm9OI GsVINpxCq9muVoQj98YtNEBYnv+MzkmLEP5VKV0r7/SPOY+X/nTJcssWaOq02/I18TdR EJkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H3muc0jE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz3-20020a170906fe4300b0078223ff2756si3439716ejb.244.2022.12.07.05.25.56; Wed, 07 Dec 2022 05:26:17 -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=@gmail.com header.s=20210112 header.b=H3muc0jE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbiLGNVQ (ORCPT + 76 others); Wed, 7 Dec 2022 08:21:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiLGNVO (ORCPT ); Wed, 7 Dec 2022 08:21:14 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028A01408A; Wed, 7 Dec 2022 05:21:12 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id kw15so10491512ejc.10; Wed, 07 Dec 2022 05:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Oue94+Ik3eRv7cdb5g71pdk/j0xTlBWe2Mf1/zKEImI=; b=H3muc0jE053evwd95r//iMIDA0r9fh85T9SrJO9RMnfjaaEilI02fYT4y90uKCrER9 cch1B/7qotOMQdGfCRcEGmnN6G/EN4l0hbiBeQdpHo03hYA5BWdJJGK/9P/6hUSYeRyO mdaaD5HU2eJAAwaaTR1hkHujW+FfZP3Yxy/848qutO6K4k9uY93UwU5jxNAOXaxze/bV ZgsSXeLP3eC4qEuJuQoPksZWxe4zAjv/xRNKZ3TdIEq+dkoy4ovMGVdCSpA99rdTpUR4 rz+tH7eLvAfIII7Boq79rPmEljRGJET7lhoKn6mh7hrIZxvSlu5zsl6+xJXTbLsVKqYg LE0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Oue94+Ik3eRv7cdb5g71pdk/j0xTlBWe2Mf1/zKEImI=; b=fSfL5k8hKav5R/5WU9VKUjVHu6s5xnUpmHCGfGvZkgM4j4PySCxO90ZNZVYXArZUsw vDv72OlKCLSS3Hw8VMnEt36rVbVU9s+P/hN0QHJ8uzk14FHU4KqWa0Cd/mlG2NeEy61S KwQwLgMdEgewd3iS/CMe60u0Cj74p2NjQ+86ucDqiObHvEUErkuVeZILb+hLzAMU6rij M9p9CSEOMzjEtCyhONUT+Zg2OtPzrae/DjRCrEy+ti7o1onPsVIQtBXYyLhvlPe2gskE Vd/D9GwtD4kgItNwerv7U61KRudZe62OZ51y6Tz5E9mLD9hBRaVyXULri8Nq1/SMpwkW 3SWA== X-Gm-Message-State: ANoB5pn66qITppXnUXJxsnUOy23HSPFJZ1IRjxvWP3pmkSL5WSOvjVGf nnxoZSr4EJv40smyauwNUdE= X-Received: by 2002:a17:907:c296:b0:78d:fd4e:5da6 with SMTP id tk22-20020a170907c29600b0078dfd4e5da6mr341117ejc.26.1670419270531; Wed, 07 Dec 2022 05:21:10 -0800 (PST) Received: from skbuf ([188.26.184.215]) by smtp.gmail.com with ESMTPSA id vk2-20020a170907cbc200b007bf5250b515sm8535888ejc.29.2022.12.07.05.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 05:21:10 -0800 (PST) Date: Wed, 7 Dec 2022 15:21:07 +0200 From: Vladimir Oltean To: Rakesh.Sankaranarayanan@microchip.com Cc: kuba@kernel.org, andrew@lunn.ch, davem@davemloft.net, Woojung.Huh@microchip.com, linux-kernel@vger.kernel.org, f.fainelli@gmail.com, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, edumazet@google.com, pabeni@redhat.com, Oleksij Rempel Subject: Re: [RFC Patch net-next 3/5] net: dsa: microchip: add eth mac grouping for ethtool statistics Message-ID: <20221207132107.3lefphupzpty4uoa@skbuf> References: <20221130132902.2984580-1-rakesh.sankaranarayanan@microchip.com> <20221130132902.2984580-4-rakesh.sankaranarayanan@microchip.com> <20221201200230.0f1054fe@kernel.org> <6c1a53a825bee2b22f7e532885e6e777685c0726.camel@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6c1a53a825bee2b22f7e532885e6e777685c0726.camel@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On Fri, Dec 02, 2022 at 11:53:33AM +0000, Rakesh.Sankaranarayanan@microchip.com wrote: > Hi Jakub, > > Thanks for the review comment. > > On Thu, 2022-12-01 at 20:02 -0800, Jakub Kicinski wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > > > > On Wed, 30 Nov 2022 18:59:00 +0530 Rakesh Sankaranarayanan wrote: > > > +???? mac_stats->FramesTransmittedOK = ctr[ksz9477_tx_mcast] + > > > +????????????????????????????????????? ctr[ksz9477_tx_bcast] + > > > +????????????????????????????????????? ctr[ksz9477_tx_ucast] + > > > +????????????????????????????????????? ctr[ksz9477_tx_pause]; > > > > do control frames count towards FramesTransmittedOK? > > Please check the standard I don't recall. > > > Yeah, I will check with the documentation. Oleksij said that the hardware counts pause frames for the byte counters, so at least for consistency, they should be counted in frame counters too. https://patchwork.kernel.org/project/netdevbpf/patch/20221205052904.2834962-1-o.rempel@pengutronix.de/