[openib-general] [PATCH] Minor fix for ibnetdiscover

Hal Rosenstock halr at voltaire.com
Wed Mar 1 05:00:32 PST 2006


On Tue, 2006-02-28 at 20:28, Jason Gunthorpe wrote:
> 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.

Thanks Jason. Applied to both trunk and 1.0.

-- Hal

> 
> 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)
> 		{
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list