diff mbox series

[ethtool-next,5/5] man: mention XDP standard statistics in help and man page

Message ID 20210803165140.172-6-alexandr.lobakin@intel.com
State New
Headers show
Series [ethtool-next,1/5] sync UAPI header copies | expand

Commit Message

Alexander Lobakin Aug. 3, 2021, 4:51 p.m. UTC
"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 <alexandr.lobakin@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
---
 ethtool.8.in | 3 ++-
 ethtool.c    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

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",