Skip to contentSkip to conversation

infiniband-diags: libibnetdisc/iblinkinfo Allow for a partial fabric query centered around a CA

PATCH In review Ira Weiny 1 participant 1 message Jul 5, 2011 InfiniBand

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 4/4 infiniband-diags: libibnetdisc/iblinkinfo Allow for a partial fabric query centered around a CA

The old algorithm would attempt to extend the DR path through the CA and fail. The new algoritm retracts the path to get to the node connected to the CA.

---
 libibnetdisc/libibnetdisc.ver |    2 +-
 libibnetdisc/src/ibnetdisc.c  |   83 ++++++++++++++++++++++++++++---------
 libibnetdisc/src/internal.h   |    1 +
 man/iblinkinfo.8              |   20 ++++-----
 src/iblinkinfo.c              |   91 +++++++++++++++++++++++++----------------
 5 files changed, 129 insertions(+), 68 deletions(-)
libibnetdisc/libibnetdisc.ver +1 -1
index 27f922f..d0ea703 100644
@@ -6,4 +6,4 @@
 # API_REV - advance on any added API
 # RUNNING_REV - advance any change to the vendor files
 # AGE - number of backward versions the API still supports
-LIBVERSION=5:1:0
+LIBVERSION=5:2:0
libibnetdisc/src/ibnetdisc.c +63 -20

172 lines not on this page · raw message

libibnetdisc/src/internal.h +1 -0
index 3c599ec..80918c4 100644
@@ -62,6 +62,7 @@ typedef struct ibnd_scan {
 	ibnd_fabric_t *fabric;
 	struct ibnd_config *cfg;
 	struct ibmad_port *ibmad_port;
+	unsigned initial_hops;
 } ibnd_scan_t;
 
 typedef struct ibnd_smp ibnd_smp_t;
man/iblinkinfo.8 +9 -11
index a66db6d..dc3f328 100644
@@ -5,34 +5,32 @@ 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 <node_guid> -G <node_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 port info for each port in an IB fabric, node by node.
 
 .SH OPTIONS
 
 .PP
 .TP
-\fB\-S <guid>\fR
-Output only the switch specified by <guid> (hex format)
+\fB\-S <node_guid>\fR \fB\-G <node_guid>\fR
+Output only the node specified by <node_guid> (hex format)
 .TP
 \fB\-D <direct_route>\fR
-Output only the switch specified by the direct route path.
+Output only the node 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
src/iblinkinfo.c +55 -36

217 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