Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp934292rwb; Wed, 16 Nov 2022 09:32:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7W51DKqJwujKGNM2LfRJRaYIIwmJpnpHOb7lfg/3BZm24V4f6/UTeCCK4xhXhE2LevVHBt X-Received: by 2002:a17:902:db0a:b0:17b:2d0a:65a7 with SMTP id m10-20020a170902db0a00b0017b2d0a65a7mr10071840plx.85.1668619920464; Wed, 16 Nov 2022 09:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668619920; cv=none; d=google.com; s=arc-20160816; b=qjQkTxfXLQBqhMLlLhFJEYIdKBCj9dIrmo+DPXXFlgYbPPXWTwtORE3MwxXl2BjT/9 INoLcD9f2E14mKz6irYmrWmTVDrXlmPSqrFtdQFXrzGHEoSlOut4xCB1oaqHz6vqpUPt MrQqnm2qT4y/mmMPlfipEiQ60SHXA++YgGf2khTe7v7Aq6rjmi5BfMNp+iIFz6+Np4XK K8XAslrnN1Yy7EUD41aATAAHdUdlNcB9sxZZ/WkTywl7bezfNZcyVwwQOTn8Tp1Cmh+Y gwzlZt3jtgmvzyTUKOz2f1/HrzcQnTuBiX0Pst38CinRJmvdePa7z9XrIp4SLchm9e7M k8rA== 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=bLUlbc/+/0gO3dcznYxH6czWQ+tUlfa7KsA12zfO79k=; b=IFfnOsflMokz0qvJ44SLumvrPlJD6DvsfgcVmrPvmTHJNFYLpaZg/ZbafZZY8sU83s r1bz/zom7OqidDnmkRlxcTAEJYD8G9PcC2ONhCS4JLBX4e1KLCPFj5St2n+amizS6kbN yjq60fgLv5dORCPkOXtxCL6Q2lwB6e/VLgfNYdadMcf+JPSuq5Ot00P0NkL4rF8TM9tl 8kbMBkuODPQnpuEYbKb73odVtYhozdmJXJEjgQAXJPuAGnClUyUh2X6EcrdRdrSCD4MX y5i1jy5eS5hr+z5P9/QUSzwHXD4sIM9TKBY3SmUT+HSUvG2CDmbqZ+FHRWQbFNLv8s62 K3sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m3mMcdzi; 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 r3-20020a1709028bc300b00186a8c18856si104275plo.451.2022.11.16.09.31.47; Wed, 16 Nov 2022 09:32: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=m3mMcdzi; 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 S233725AbiKPRAu (ORCPT + 90 others); Wed, 16 Nov 2022 12:00:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbiKPRAY (ORCPT ); Wed, 16 Nov 2022 12:00:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C152D1FA; Wed, 16 Nov 2022 09:00:08 -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 03E3361EE6; Wed, 16 Nov 2022 17:00:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D19FFC433D6; Wed, 16 Nov 2022 17:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668618007; bh=bLUlbc/+/0gO3dcznYxH6czWQ+tUlfa7KsA12zfO79k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m3mMcdziSW9f8rS4Hhuu3yNRUGrINjlA4uet/i50yYwNuIGx0FjG8n1JPyf9RMW0c 2NX/6LW6odUqQjlSKw8KivnxZtYrP4ICtnUqHkTfQE04yqLC5erBcoEKi3XD+wLX25 xBVfjhvT+u0AyrZeOD5BA2QVNkmhrq+gqDKIV3EHcORQdczgtzTNRdH+0eZyu5OjLE aiqCvQprlOywqAIR5cSoxacZzaG2zgyx/pvTYdGV37kFDDv60m1LRYl5pwfWDrLfB3 zJ2/Hn/QUTLYanjvgRhUp8IxtGmLbpQgsqLIYe9H6oAdkWqcvFDJTjS7Rxm/gtlha0 LhrwNiphWocuA== Date: Wed, 16 Nov 2022 09:00:05 -0800 From: Jakub Kicinski To: Jerry Ray Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , "Paolo Abeni" , , Subject: Re: [net-next][PATCH v2 2/2] dsa: lan9303: Add 2 ethtool stats Message-ID: <20221116090005.6eeb961d@kernel.org> In-Reply-To: <20221115165131.11467-2-jerry.ray@microchip.com> References: <20221115165131.11467-1-jerry.ray@microchip.com> <20221115165131.11467-2-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 Tue, 15 Nov 2022 10:51:31 -0600 Jerry Ray wrote: > Adding RxDropped and TxDropped counters to the reported statistics. > As these stats are kept by the switch rather than the port instance, > they are indexed differently. What are these statistics counting? They are still per port, so should they be reported in struct rtnl_link_stats::[rt]x_dropped ?