Message ID | 25ce8a4f.6db0.182910b625a.Coremail.15720603159@163.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Stephen Hemminger |
Headers | show |
Series | [iproute2] rdma: modify the command output message of rdma statistic help based on man manual | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
On Fri, Aug 12, 2022 at 03:53:38PM +0800, jiangheng wrote: > > From 4ce8d60f34c5cdcff8b25e3c3891fc053736225b Mon Sep 17 00:00:00 2001 > From: jinag <jinag12138@gmail.com> > Date: Fri, 12 Aug 2022 15:48:07 +0800 > Subject: [PATCH] rdma: modify the command output message of rdma statistic help > based on man manual > > > --- > rdma/stat.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) iproute2 follows kernel coding style, both in the code and in the patches. Please follow it. Thanks > > > diff --git a/rdma/stat.c b/rdma/stat.c > index aad8815c..1e869c25 100644 > --- a/rdma/stat.c > +++ b/rdma/stat.c > @@ -24,10 +24,10 @@ static int stat_help(struct rd *rd) > pr_out(" %s statistic mode [ supported ] link [ DEV/PORT_INDEX ]\n", rd->filename); > pr_out(" %s statistic set link [ DEV/PORT_INDEX ] optional-counters [ OPTIONAL-COUNTERS ]\n", rd->filename); > pr_out(" %s statistic unset link [ DEV/PORT_INDEX ] optional-counters\n", rd->filename); > - pr_out("where OBJECT: = { qp }\n"); > - pr_out(" CRITERIA : = { type }\n"); > + pr_out("where OBJECT: = { qp | mr }\n"); > + pr_out(" CRITERIA : = { type | pid }\n"); > pr_out(" COUNTER_SCOPE: = { link | dev }\n"); > - pr_out(" FILTER_NAME: = { cntn | lqpn | pid }\n"); > + pr_out(" FILTER_NAME: = { cntn | lqpn | pid | qp_type }\n"); > pr_out("Examples:\n"); > pr_out(" %s statistic qp show\n", rd->filename); > pr_out(" %s statistic qp show link mlx5_2/1\n", rd->filename); > -- > 2.23.0
diff --git a/rdma/stat.c b/rdma/stat.c index aad8815c..1e869c25 100644 --- a/rdma/stat.c +++ b/rdma/stat.c @@ -24,10 +24,10 @@ static int stat_help(struct rd *rd) pr_out(" %s statistic mode [ supported ] link [ DEV/PORT_INDEX ]\n", rd->filename); pr_out(" %s statistic set link [ DEV/PORT_INDEX ] optional-counters [ OPTIONAL-COUNTERS ]\n", rd->filename); pr_out(" %s statistic unset link [ DEV/PORT_INDEX ] optional-counters\n", rd->filename); - pr_out("where OBJECT: = { qp }\n"); - pr_out(" CRITERIA : = { type }\n"); + pr_out("where OBJECT: = { qp | mr }\n"); + pr_out(" CRITERIA : = { type | pid }\n"); pr_out(" COUNTER_SCOPE: = { link | dev }\n"); - pr_out(" FILTER_NAME: = { cntn | lqpn | pid }\n"); + pr_out(" FILTER_NAME: = { cntn | lqpn | pid | qp_type }\n"); pr_out("Examples:\n"); pr_out(" %s statistic qp show\n", rd->filename); pr_out(" %s statistic qp show link mlx5_2/1\n", rd->filename);
From 4ce8d60f34c5cdcff8b25e3c3891fc053736225b Mon Sep 17 00:00:00 2001 From: jinag <jinag12138@gmail.com> Date: Fri, 12 Aug 2022 15:48:07 +0800 Subject: [PATCH] rdma: modify the command output message of rdma statistic help based on man manual --- rdma/stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.23.0