Skip to contentSkip to conversation

opensm/osm_dump.c: Dump SL2VL tables if routing engine might have modified them

PATCH In review Hal Rosenstock 2 participants 2 messages Oct 18, 2011 – Nov 1, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 opensm/osm_dump.c: Dump SL2VL tables if routing engine might have modified them

---
 opensm/osm_dump.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
opensm/osm_dump.c +3 -1
index 0108365..cc0f20b 100644
@@ -718,7 +718,9 @@ void osm_dump_all(osm_opensm_t * osm)
 				      &osm->subn.sw_guid_tbl,
 				      dump_mcast_routes, osm);
 		/* SL2VL tables */
-		if (osm->subn.opt.qos)
+		if (osm->subn.opt.qos ||
+		    (osm->routing_engine_used &&
+		     osm->routing_engine_used->update_sl2vl))
 			osm_dump_qmap_to_file(osm, "opensm-sl2vl.dump",
 					      &osm->subn.port_guid_tbl,
 					      dump_sl2vl_tbl, osm);
Signature · 6 lines
1.7.6.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