From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 168B6C433EF for ; Mon, 27 Jun 2022 16:15:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238282AbiF0QPe (ORCPT ); Mon, 27 Jun 2022 12:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238953AbiF0QPd (ORCPT ); Mon, 27 Jun 2022 12:15:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2357B186FD; Mon, 27 Jun 2022 09:15:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CD1FBB818B7; Mon, 27 Jun 2022 16:15:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0921BC3411D; Mon, 27 Jun 2022 16:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656346530; bh=77bhyQ7wgLJipdogb8BkaEAoXkAjBX1Mm1kwZ2+DCB4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m5bijR76p8V/Ps5SnlCCrDtz0RB57qcJ8+77FH/bistoHixjGz5nYNeUCZGCmRxvl ah6SVM7o/+y1ChoLT6fqkvL8JpO41a7w70PkSB0bDk9ULSGpu6kTj1w5q+6dijpw2e nM0p3vAnkAFs6G54GqRCmdGu5BhJ8vR+LncQO/5I8/5agBvuSevEey/VUXJet9fIZa jBH444LHxBWO44Gla5EfvvRgmF6uPce6l32HZaDfwm5x5dwi8v3TatS4Gn045QI8Pq hxgSu5Uzi+5r5ltxP3PlcOTSsMgwXXHtaiHwjdEMuoe2WJtpe9Es6mZyjHo7qCGY3D Fi/r3tETyGp1w== Date: Mon, 27 Jun 2022 09:15:21 -0700 From: Jakub Kicinski To: Oleksij Rempel Cc: Vladimir Oltean , Woojung Huh , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Lukas Wunner , UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v1 2/3] net: dsa: ar9331: add support for pause stats Message-ID: <20220627091521.3b80a4e8@kernel.org> In-Reply-To: <20220626171008.GA7581@pengutronix.de> References: <20220624125902.4068436-1-o.rempel@pengutronix.de> <20220624125902.4068436-2-o.rempel@pengutronix.de> <20220624220317.ckhx6z7cmzegvoqi@skbuf> <20220626171008.GA7581@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, 26 Jun 2022 19:10:08 +0200 Oleksij Rempel wrote: > > Is there an authoritative source who is able to tell whether rtnl_link_stats64 :: > > rx_packets and tx_packets should count PAUSE frames or not? > > Yes, it will be interesting to know how to proceed with it. I'm curious as well, AFAIK most drivers do not count pause to ifc stats. > For example KSZ switch do count pause frame Bytes together will other > frames. At same time, atheros switch do not count pause frame bytes > at all. > > To make things worse, i can manually send pause frame of any size, so > it will not be accounted by HW. What ever decision we will made, i > will need to calculate typical pause frame size and hope it will fit > for 90% of cases. :(