Skip to contentSkip to conversation

rdma: Refresh help section of resource information

PATCH Applied Leon Romanovsky 3 participants 3 messages Nov 1, 2018 – Nov 5, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rdma: Refresh help section of resource information

From: Leon Romanovsky <[email protected]>

After commit 4060e4c0d257 ("rdma: Add PD resource tracking information"), the resource information shows PDs and MRs, but help pages didn't fully reflect it.

---
 rdma/res.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
rdma/res.c +5 -1
index 0d8c1c38..cbb2efe6 100644
@@ -16,13 +16,17 @@ static int res_help(struct rd *rd)
 {
 	pr_out("Usage: %s resource\n", rd->filename);
 	pr_out("          resource show [DEV]\n");
-	pr_out("          resource show [qp|cm_id]\n");
+	pr_out("          resource show [qp|cm_id|pd|mr|cq]\n");
 	pr_out("          resource show qp link [DEV/PORT]\n");
 	pr_out("          resource show qp link [DEV/PORT] [FILTER-NAME FILTER-VALUE]\n");
 	pr_out("          resource show cm_id link [DEV/PORT]\n");
 	pr_out("          resource show cm_id link [DEV/PORT] [FILTER-NAME FILTER-VALUE]\n");
 	pr_out("          resource show cq link [DEV/PORT]\n");
 	pr_out("          resource show cq link [DEV/PORT] [FILTER-NAME FILTER-VALUE]\n");
+	pr_out("          resource show pd dev [DEV]\n");
+	pr_out("          resource show pd dev [DEV] [FILTER-NAME FILTER-VALUE]\n");
+	pr_out("          resource show mr dev [DEV]\n");
+	pr_out("          resource show mr dev [DEV] [FILTER-NAME FILTER-VALUE]\n");
 	return 0;
 }
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Leon Romanovsky <[email protected]>
Sent: Thursday, November 1, 2018 3:35 AM
To: David Ahern <[email protected]>
Cc: Leon Romanovsky <[email protected]>; netdev <[email protected]>; RDMA mailing list <[email protected]>; Stephen Hemminger <[email protected]>; Steve Wise <[email protected]>
Subject: [PATCH iproute2-next] rdma: Refresh help section of resource information

Quoted 7 lines

From: Leon Romanovsky <[email protected]>

After commit 4060e4c0d257 ("rdma: Add PD resource tracking information"), the resource information shows PDs and MRs, but help pages didn't fully reflect it.

Oops. Thanks. Looks fine.