dump_ucast_routes() claims that a node is unreachable if the number of hops to it is unknown. This is changed to print actual port and give proper warning about hops.
Signed-off-by: Line Holen <[email protected]> --- diff --git a/opensm/opensm/osm_dump.c b/opensm/opensm/osm_dump.c index 946ee6a..08b3156 100644 --- a/opensm/opensm/osm_dump.c +++ b/opensm/opensm/osm_dump.c @@ -1,4 +1,5 @@ /* + * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved. * Copyright (c) 2004-2008 Voltaire, Inc. All rights reserved. * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. @@ -201,7 +202,7 @@ static void dump_ucast_routes(cl_map_item_t * item, FILE * file, void *cxt) } if (num_hops == OSM_NO_PATH) { - fprintf(file, "UNREACHABLE\n"); + fprintf(file, "%03u : HOPS UNKNOWN\n", port_num); continue; } _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
