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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 8D2EAC432BE for ; Tue, 3 Aug 2021 16:52:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 799BE61029 for ; Tue, 3 Aug 2021 16:52:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237494AbhHCQwc (ORCPT ); Tue, 3 Aug 2021 12:52:32 -0400 Received: from mga04.intel.com ([192.55.52.120]:6624 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237457AbhHCQw3 (ORCPT ); Tue, 3 Aug 2021 12:52:29 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10065"; a="211868126" X-IronPort-AV: E=Sophos;i="5.84,292,1620716400"; d="scan'208";a="211868126" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 09:52:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,292,1620716400"; d="scan'208";a="585041756" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2021 09:52:07 -0700 Received: from alobakin-mobl.ger.corp.intel.com (mszymcza-mobl.ger.corp.intel.com [10.213.25.231]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 173Gpg7B004325; Tue, 3 Aug 2021 17:52:02 +0100 From: Alexander Lobakin To: Michal Kubecek Cc: "David S. Miller" , Jakub Kicinski , Alexander Lobakin , Jesse Brandeburg , Lukasz Czapnik , Marcin Kubiak , Michal Kubiak , Michal Swiatkowski , Jonathan Corbet , Netanel Belgazal , Arthur Kiyanovski , Guy Tzalik , Saeed Bishara , Ioana Ciornei , Claudiu Manoil , Thomas Petazzoni , Marcin Wojtas , Russell King , Edward Cree , Martin Habets , "Michael S. Tsirkin" , Jason Wang , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Shay Agroskin , Sameeh Jubran , Alexander Duyck , Danielle Ratson , Ido Schimmel , Andrew Lunn , Vladyslav Tarasiuk , Arnd Bergmann , Andrew Morton , Jian Shen , Petr Vorel , Dan Murphy , Yangbo Lu , Zheng Yongjun , Heiner Kallweit , YueHaibing , Johannes Berg , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, bpf@vger.kernel.org Subject: [PATCH ethtool-next 5/5] man: mention XDP standard statistics in help and man page Date: Tue, 3 Aug 2021 18:51:40 +0200 Message-Id: <20210803165140.172-6-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210803165140.172-1-alexandr.lobakin@intel.com> References: <20210803165140.172-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org "xdp" is a new type of standard statistics landed in with Linux commit a9428aaed122 ("ethtool, stats: introduce standard XDP statistics"). Mention it in the help text and the man page source. Signed-off-by: Alexander Lobakin Reviewed-by: Jesse Brandeburg --- ethtool.8.in | 3 ++- ethtool.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ethtool.8.in b/ethtool.8.in index 6b7761849fca..7db0adebbdcf 100644 --- a/ethtool.8.in +++ b/ethtool.8.in @@ -245,6 +245,7 @@ ethtool \- query or control network driver and hardware settings .RB [\fBeth\-mac\fP] .RB [\fBeth\-ctrl\fP] .RB [\fBrmon\fP] +.RB [\fBxdp\fP] .RB ] .HP .B ethtool \-\-phy\-statistics @@ -673,7 +674,7 @@ naming of NIC- and driver-specific statistics across vendors. .B \fB\-\-all\-groups .E .TP -.B \fB\-\-groups [\fBeth\-phy\fP] [\fBeth\-mac\fP] [\fBeth\-ctrl\fP] [\fBrmon\fP] +.B \fB\-\-groups [\fBeth\-phy\fP] [\fBeth\-mac\fP] [\fBeth\-ctrl\fP] [\fBrmon\fP] [\fBxdp\fP] Request groups of standard device statistics. .RE .TP diff --git a/ethtool.c b/ethtool.c index 33a0a492cb15..c1f1279bd9f0 100644 --- a/ethtool.c +++ b/ethtool.c @@ -5776,7 +5776,7 @@ static const struct option args[] = { .nlchk = nl_gstats_chk, .nlfunc = nl_gstats, .help = "Show adapter statistics", - .xhelp = " [ --all-groups | --groups [eth-phy] [eth-mac] [eth-ctrl] [rmon] ]\n" + .xhelp = " [ --all-groups | --groups [eth-phy] [eth-mac] [eth-ctrl] [rmon] [xdp] ]\n" }, { .opts = "--phy-statistics", -- 2.31.1