[openib-general] [PATCH] Minor fix for ibnetdiscover
Jason Gunthorpe
jgunthorpe at obsidianresearch.com
Tue Feb 28 17:28:29 PST 2006
Trivial, ibnetdiscover does not display some switches for some
topologies. This seems to come up if you connect a CA to a switch
but nothing else to the switch.
Output before:
# Topology file: generated on Tue Feb 28 18:21:30 2006
#
# Max of 1 hops discovered
# Initiated from node 0002c9020020d654 port 0002c9020020d655
devid=0x6274
caguids=0x2c9020020d654
Ca 1 "H-0002c9020020d654" # MT25204 InfiniHostLx Mellanox Technologies
[1] "S-0004538030003670"[1] # lid 3 lmc 0
After:
#
# Topology file: generated on Tue Feb 28 18:22:03 2006
#
# Max of 1 hops discovered
# Initiated from node 0002c9020020d654 port 0002c9020020d655
devid=0x0
switchguids=0x4538030003670
Switch 2 "S-0004538030003670" # Longbow-XR Prototype - Obsidian Research Corporation port 0 lid 4
[1] "H-0002c9020020d654"[1]
devid=0x6274
caguids=0x2c9020020d654
Ca 1 "H-0002c9020020d654" # MT25204 InfiniHostLx Mellanox Technologies
[1] "S-0004538030003670"[1] # lid 3 lmc 0
--- ibnetdiscover.c.old 2006-02-15 17:10:34.000000000 -0700
+++ ibnetdiscover.c 2006-02-28 18:13:16.000000000 -0700
@@ -532,7 +532,7 @@
#endif
}
- for (dist = 0; dist < maxhops_discovered; dist++) {
+ for (dist = 0; dist <= maxhops_discovered; dist++) {
for (node = nodesdist[dist]; node; node = node->dnext)
{
More information about the general
mailing list