Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76B6CC433B4 for ; Thu, 22 Apr 2021 09:41:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4702E6145C for ; Thu, 22 Apr 2021 09:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235754AbhDVJl4 (ORCPT ); Thu, 22 Apr 2021 05:41:56 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:51429 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbhDVJlz (ORCPT ); Thu, 22 Apr 2021 05:41:55 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 29C87FE1; Thu, 22 Apr 2021 05:41:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 22 Apr 2021 05:41:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=JutoYl GGRIb85ttmwv5ZhquJjpbL9lySoXNE5ybPuHk=; b=ixN9vqZRuavJ9x8dCAzeNZ Jr3JSLmBmst3X8ZSvtD8lcHawPsLtintVPb6dFEpRP1RPpcX/jfqFM8JZ71J1oM+ 8rIShWGMFHmOa40iP4dcGdj+MRLaA9yQnboCspNnV3/Q3f66qAgLTvkBiOYJBzZi qmUwoNO9q0o8UAhC/Yfi7iXmkothNb+nU079Z9J/btEuUXzVjLZconu+QZGKuoLA 6t8j6M+ttigJYvyx0HfHdjLv4UmevWdUL+ikhOmFDTCrOsymiTmOlUE7sds8vvcy yOPy4QoevZ2yfJRrqMol2gyKTCnN1rVoLsvG+rCkKnqQIG6EhaBnTSp79qL7hNqQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddutddgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiugho shgthhdrohhrgheqnecuggftrfgrthhtvghrnheptdffkeekfeduffevgeeujeffjefhte fgueeugfevtdeiheduueeukefhudehleetnecukfhppeekgedrvddvledrudehfedrudek jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiug hoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: from localhost (igld-84-229-153-187.inter.net.il [84.229.153.187]) by mail.messagingengine.com (Postfix) with ESMTPA id 0EB6C240065; Thu, 22 Apr 2021 05:41:19 -0400 (EDT) Date: Thu, 22 Apr 2021 12:41:15 +0300 From: Ido Schimmel To: Jakub Kicinski Cc: mkubecek@suse.cz, netdev@vger.kernel.org Subject: Re: [PATCH ethtool-next 6/7] netlink: add support for standard stats Message-ID: References: <20210420003112.3175038-1-kuba@kernel.org> <20210420003112.3175038-7-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210420003112.3175038-7-kuba@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Apr 19, 2021 at 05:31:11PM -0700, Jakub Kicinski wrote: > Add support for standard-based stats. > > Unlike ethtool -S eth0 the new stats should be allow cross-vendor > compatibility. The interface depends on bitsets and is rather simple. [...] > > Signed-off-by: Jakub Kicinski Tested-by: Ido Schimmel One comment below [...] > diff --git a/netlink/stats.c b/netlink/stats.c > new file mode 100644 > index 000000000000..e7e69f002cd5 > --- /dev/null > +++ b/netlink/stats.c > @@ -0,0 +1,264 @@ > +/* > + * stats.c - netlink implementation of stats > + * > + * Implementation of "ethtool -S " and and ? > + */