diff mbox

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

Message ID 50CF4E83.6030501@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock Dec. 17, 2012, 4:55 p.m. UTC
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

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Alex Netes Jan. 30, 2013, 5:47 p.m. UTC | #1
Hi Hal,

On 11:55 Mon 17 Dec     , Hal Rosenstock wrote:
> 
> 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
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/opensm/osm_dump.c b/opensm/osm_dump.c
index b9bd6ed..aae6a18 100644
--- a/opensm/osm_dump.c
+++ b/opensm/osm_dump.c
@@ -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);