[PATCH 11/27] Fix base port0 sl2vl mapping optimization

From
Alex Netes <hidden>
Date
2012-07-31 16:04:39
The settings should be saved to the port that was used during the calculation
and not port 0 by default.

Signed-off-by: Alex Netes <redacted>
---
 opensm/osm_qos.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/osm_qos.c b/opensm/osm_qos.c
index ce48867..bfcf1e3 100644
--- a/opensm/osm_qos.c
+++ b/opensm/osm_qos.c
@@ -319,7 +319,7 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node,
 
 		}
 		force_update = node->sw->need_update || sm->p_subn->need_update;
-		if (sl2vl_update_table(sm, p0, 0, 0x30000, force_update,
+		if (sl2vl_update_table(sm, p0, p0->port_num, 0x30000, force_update,
 					&qcfg->sl2vl, port_mad_list))
 			ret = -1;
 		/*
@@ -335,7 +335,7 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node,
 			force_update = p->need_update || force_update;
 			if (ib_port_info_get_op_vls(&p->port_info) !=
 			    common_op_vl &&
-			    sl2vl_update_table(sm, p, 0, 0x20000 | out,
+			    sl2vl_update_table(sm, p, p->port_num, 0x20000 | out,
 					       force_update, &qcfg->sl2vl,
 					       port_mad_list))
 				ret = -1;
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (1 message) 1 message, 1 author, last reply 2012-07-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help