Skip to contentSkip to conversation

opensm/osm_dump.c: Fix output port on SL2VL table for non switch nodes

PATCH In review Hal Rosenstock 2 participants 2 messages Dec 17, 2012 – Jan 30, 2013 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_dump.c: Fix output port on SL2VL table for non switch nodes

Rather than actual port number as out port, use port number 0 for out port when CA or router as in/out ports are reserved

---

opensm/osm_dump.c +1 -2
index b9bd6ed..aae6a18 100644
@@ -529,8 +529,7 @@ static void dump_sl2vl_tbl(cl_map_item_t * item, FILE * file, void *cxt)
 		for (i = 0, n = 0; i < 16; i++)
 			n += sprintf(buf + n, " %-2d",
 					ib_slvl_table_get(p_tbl, i));
-		fprintf(file, "%-3d %-3d :%s\n",
-			0, p_physp->port_num, buf);
+		fprintf(file, "%-3d %-3d :%s\n", 0, 0, buf);
 	}
 
 	fprintf(file, "%s\n\n", separator_line);

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

#2 lore raw
In reply to a message not in the archive

Hi Hal,

Quoted 6 lines · Hal Rosenstock

Rather than actual port number as out port, use port number 0 for out port when CA or router as in/out ports are reserved

---

Applied, thanks.
--
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