infiniband-diags: convert ib[linkinfo|queryerrors] to use PortGUIDs
PATCH 3/3 infiniband-diags: convert ib[linkinfo|queryerrors] to use PortGUIDs
NodeGUID's are no longer output nor accepted as input.
Furthermore expand search to cover all node types:
iblinkinfo CA and router nodes are output in a slightly different manner due to each port containing a unique PortGUID. "-l" output is unaffected.
ibqueryerrors correctly reports PortGUID for each port printed.
Signed-off-by Ira Weiny <[email protected]>
--- man/iblinkinfo.8 | 22 ++++---- man/ibqueryerrors.8.in | 11 ++-- src/iblinkinfo.c | 146 +++++++++++++++++++++++++++--------------------- src/ibqueryerrors.c | 58 ++++++++++--------- 4 files changed, 131 insertions(+), 106 deletions(-)
man/iblinkinfo.8 +11 -11
@@ -5,34 +5,34 @@ iblinkinfo \- report link info for all links in the fabric .SH SYNOPSIS .B iblinkinfo - [-hcdl -C <ca_name> -P <ca_port> -v <lt,hoq,vlstall> -S <guid> --D <direct_route> \-\-load\-cache <filename>] + [-hcdl -C <ca_name> -P <ca_port> -p -S <port_guid> -G <port_guid> -D <direct_route> \-\-load\-cache <filename>] .SH DESCRIPTION .PP -iblinkinfo reports the link info for each port of each switch active in the -IB fabric. +iblinkinfo reports link info for each port in an IB fabric, node by node. +Optionally, iblinkinfo can do partial scans and limit its output to parts of a +fabric. .SH OPTIONS .PP .TP -\fB\-S <guid>\fR -Output only the switch specified by <guid> (hex format) +\fB\-S <port_guid>\fR \fB\-G <port_guid>\fR \fB\-\-port\-guid\fR +start partial scan at the port specified by <port_guid> (hex format) .TP \fB\-D <direct_route>\fR -Output only the switch specified by the direct route path. +start partial scan at the port specified by the direct route path. .TP \fB\-l\fR Print all information for each link on one line. Default is to print a header -with the switch information and then a list for each port (useful for +with the node information and then a list for each port (useful for grep\'ing output). .TP \fB\-d\fR -Print only switches which have a port in the "Down" state. +Print only nodes which have a port in the "Down" state. .TP -\fB\-v <lt,hoq,vlstall>\fR -Verify additional switch settings (<LifeTime>,<HoqLife>,<VLStallCount>) +\fB\-p\fR +Print additional port settings (<LifeTime>,<HoqLife>,<VLStallCount>) .TP \fB\-C <ca_name>\fR use the specified ca_name for the search. .TP
man/ibqueryerrors.8.in +6 -5
@@ -27,14 +27,15 @@ Suppress the errors listed in the comma separated list provided. Suppress some of the common "side effect" counters. These counters usually do not indicate an error condition and can be usually be safely ignored. .TP -\fB\-G <node_guid>\fR -Report results only for the node guid specified. +\fB\-G <port_guid>\fR \fB\-S <port_guid>\fR \fB\-\-port\-guid\fR +Report results for the port specified. For switches results are printed for +all ports not just switch port 0. .TP -\fB\-S <node_guid>\fR -\-S is provided only for backward compatibility and works the same as "-G" +\-S same as "-G". (provided only for backward compatibility) .TP \fB\-D <direct_route>\fR -Report results only for the switch specified by the direct route path. +Report results for the port specified. For switches results are printed for +all ports not just switch port 0. .TP \fB\-r\fR Report the port information. This includes LID, port, external port (if
src/iblinkinfo.c +83 -63
317 lines not on this page · raw message
src/ibqueryerrors.c +31 -27
125 lines not on this page · raw message
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html