[ofa-general] [PATCH] osm_dump.c dump port if lft is set up

Line.Holen at Sun.COM Line.Holen at Sun.COM
Wed May 27 03:32:23 PDT 2009


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 <Line.Holen at sun.com>

---

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;
 		}
 



More information about the general mailing list