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 E6AC2C433FE for ; Wed, 30 Nov 2022 16:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230200AbiK3Qwc (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: netdev@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.