Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15771733rwb; Mon, 28 Nov 2022 16:07:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5n1jmoJYgKcfQ6AxFM2B3rpGxtCeocB5Q7Qy3xRqfRzkuQDW+O+etdVkWs7JmFa/Rme3/6 X-Received: by 2002:a17:902:e492:b0:186:5f71:7939 with SMTP id i18-20020a170902e49200b001865f717939mr37345195ple.162.1669680420380; Mon, 28 Nov 2022 16:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669680420; cv=none; d=google.com; s=arc-20160816; b=ZQZ4fjun7j2eYHQUueRF4KCLqpy4Qnfx4xGyTgCgcd6/KTIDTGSkFO+OhfhDmvy3EQ uxAT/RiNK6Vv35v5glWMXIDbRkuekhyhVAD5yFpqNlK+CgiHzUqeMuvX5Fd22atFrV9y dx13N9U3RPIkvkF76wjbOfqmWiuYFa+Pb2gC+alZcH9Dweq9Mu9cuDQqPdvoiCBLuFJl uAReIrNmCPCt02UT8MzzWN5u7VwoMlCQOsmUIlzEHR0yCphTmFyyryKeozE3geIWJfGD wJUSNFnJ/a015qgMzf1roOYq9Fpm2gD0++uxqbTiLIjmOgN/Nf1gJfluQGVuSE6w2P4y BUkQ== 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=YIv6d66luHg7LgNa0YC72yOLgDyxe0AvK4eNIDckDVo=; b=YA9g9tYVm4C9fMlo1/lojnQQB6hMt0yEI0td7GJlfM2y2D5IJo3YPKHTB+73h5eVKn XYQbH+yDuPCNIhHqylYuXtp7+NLwYGzxP/59kq9XVP54vWQ7ChgBHMmxFhP78YHLgTdi +cKPbQ3fTnulfl7PtODuZgBzxFNE4kANfO/+4fLnsik8HpPK6kOa4faNPbU5x6sU37FE jXnnVEegUpS6ZI37UM70bHtcmMBXKOWVKnvasOSBgz3Z7sr+iDUA+WHE5cPGF9fC6nYV tO4VkMe4Aqj1+UFrzPPHYNZMasHmI4sfKy1HH3l7WqyGThYr7yPZGT4zuim5dwpjtTfV BGyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gp2hnwzv; 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 k62-20020a638441000000b0047704a39c8fsi14146703pgd.636.2022.11.28.16.06.49; Mon, 28 Nov 2022 16:07:00 -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=@kernel.org header.s=k20201202 header.b=gp2hnwzv; 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 S234609AbiK1XVu (ORCPT + 83 others); Mon, 28 Nov 2022 18:21:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiK1XVs (ORCPT ); Mon, 28 Nov 2022 18:21:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EFBE2B637; Mon, 28 Nov 2022 15:21:47 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id CB1FB614A8; Mon, 28 Nov 2022 23:21:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC2C5C433D7; Mon, 28 Nov 2022 23:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669677706; bh=5A3/G2skf0olC1HaQUWvutOyDQ7X7G7Rh0WnKKsnAEw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gp2hnwzvuguUJ/st4wijeawAH+DTZ3ygBiUJada8MKVTpuv7mPaZfEkzUet4p4GEr cDxJUhs83huiiptJUex7PeQ9z9+zN3hx7rNOmQ22RPF4KEYN6qMXKn6WCub5xf6xXv LMOOHACFbtP6Lrb/u3tmXph5aQhlpGZueKf3+dyhv1gHzo3BC/RT0NbulFHWr+2vG3 0FKLwrpVtbiB6H3qLtJWUv3OlyLeNzkUgcv4W0CSx5gbajAgxamBQmDTb/LsWd9bYC jFFZtgiXRvh7a2xa0TJSHgGALVB/LrvMaLvtZfdDxhzmw9G/lqm5LUXNB1C4aQtNfT jScleAOzXlX7w== Date: Mon, 28 Nov 2022 15:21:45 -0800 From: Jakub Kicinski To: Jerry Ray Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , "Paolo Abeni" , , Subject: Re: [PATCH net-next v3] dsa: lan9303: Add 3 ethtool stats Message-ID: <20221128152145.486c6e4b@kernel.org> In-Reply-To: <20221128205521.32116-1-jerry.ray@microchip.com> References: <20221128205521.32116-1-jerry.ray@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon, 28 Nov 2022 14:55:21 -0600 Jerry Ray wrote: > These statistics are maintained by the switch and count the packets > dropped due to buffer limits. Note that the rtnl_link_stats: rx_dropped > statistic does not include dropped packets due to buffer exhaustion and as > such, part of this counter would more appropriately fall under the > rx_missed_errors. Why not add them there as well? Are these drops accounted for in any drop / error statistics within rtnl_link_stats? It's okay to provide implementation specific breakdown via ethtool -S but user must be able to notice that there are some drops / errors in the system by looking at standard stats.