Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2689642rwb; Wed, 30 Nov 2022 09:33:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CRLtjmYCO8C40pr8fmfEvvTPK/MwZRugv3iq7y2oADj5acO1TuqfWHc6oKlC92iZFMqGK X-Received: by 2002:a17:906:3293:b0:7bd:f540:9be7 with SMTP id 19-20020a170906329300b007bdf5409be7mr18113237ejw.434.1669829627843; Wed, 30 Nov 2022 09:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669829627; cv=none; d=google.com; s=arc-20160816; b=JFTGzdgwUGnL12YU1SSZO7B8CET4r4TcBtUk7G+AqYEH5gLAogiN5Vdb4ottG4vprg 7kCDWZPF4Yu0H44wxiY6p961bc03IkpXO/K5mpZuTyWSgIDrdRVMapidOfLmKSR6GIsf lr+6frgu/WJyl5O3wLGeS9KaI49HNA0dsDIJ+iZewRHtvDfIZFyIoVZa6KLfcQe3TYO8 R1FgyDtpZj5/egdAYr0YDCBW2m0e/susdxuirqUYb5CwD0s3hPC4gY/ur6NIj1dVGTfQ iO15IpBSYVKopcxmnleNuBS8BvDLL+JZDmybk63k3laHISmywKrhmb7bho2GXsb5HJLM Cxqw== 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=N0mLye5Fv2VJrPHTxllnZqrq8zxzNwWCwbcqqwoQqms=; b=e4tjG4gUP/YLsGnY8uoMaQe6AyiNCiAM0F2AyixpPFHvRhAZOBDEyepVROH6FZ33/I yjvWe5dSxPTCvygYWWcNL/FVIJVzKUKFhiFoNpPnQKG9Hl5IXTPFv06Zhg/ILF4NKWS3 c/7Et0BTdBMUQC2Yy/8+Lz7e99kKQC9RXUarbkb2ddYGTssq3yRoeeHzVFLrXLfchhM3 D3WfBkK06hDsFSapA9+E7PSU8IuHF7laV3qWSvUVfg3bGwDuyXfV0F+uXa6fBFpd9Csa WjJSyDXbWf8BhDTdC4xoVVWlmG+dM8mZEjy7hU9VHQka21kRRlufOE/SACanAYfCoHGK P5Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iXe2kbUV; 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 dk8-20020a0564021d8800b004676034f552si1760366edb.45.2022.11.30.09.33.27; Wed, 30 Nov 2022 09:33:47 -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=iXe2kbUV; 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 S230341AbiK3Qwc (ORCPT + 84 others); Wed, 30 Nov 2022 11:52:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiK3Qwb (ORCPT ); Wed, 30 Nov 2022 11:52:31 -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 4171D48408; Wed, 30 Nov 2022 08:52:29 -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 CDA9561D07; Wed, 30 Nov 2022 16:52:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE185C433B5; Wed, 30 Nov 2022 16:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669827148; bh=AMSe9EGDR+5O4nwyLE+yASodhltqR8IPvBjmoxFG2hg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iXe2kbUVRJDiM4YxUpRudKFv7kEJRCfAulvtVoXPXBxKcdTbb27K+pBpjACwmBzmj yONtHtuDs/SMz9ZhMdhCV+u21+RUhAy8ulRYu5SINduyK45P5y9EmOZSO9rVE4lFaR JnFoUUx4XHgWGepcHrnNqFFjOdr+UedBkJjSkl5pYcL0olKiN0W1AXPra8RRnf/GUJ U4zowFMoyt0KAZHjEJ52sVZ3nMsjvbiurj2nEw2/QTk3htd3f+80THDDRz0tyVt4cT Iz6JHjxNw4RqcJS6DMhmVEa7C3hlYJmBvsTyzW1dKqusfR8rUNh+u297tSK6wGbylW exokgpqhQsTAg== Date: Wed, 30 Nov 2022 08:52:26 -0800 From: Jakub Kicinski To: Cc: , , , , , , , Subject: Re: [PATCH net-next v3] dsa: lan9303: Add 3 ethtool stats Message-ID: <20221130085226.16c1ffc3@kernel.org> In-Reply-To: References: <20221128205521.32116-1-jerry.ray@microchip.com> <20221128152145.486c6e4b@kernel.org> 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 Wed, 30 Nov 2022 15:51:44 +0000 Jerry.Ray@microchip.com wrote: >> 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. > > The idea here is to provide the statistics as documented in the part > datasheet. In the future, I'll be looking to add support for the stats64 > API and will deal with appropriately sorting the available hardware stats > into the rtnl_link_stats buckets. Upstream we care about providing reasonably uniform experience across drivers and vendors. Because I don't know you and therefore don't trust you to follow up you must do the standard thing in the same patch set, pretty please.