diff mbox

opensm/qos.c: Revert port ranges for calls to sl2vl_update_table().

Message ID 1274737321.4773.68.camel@sale659.sandia.gov (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jim Schutt May 24, 2010, 9:42 p.m. UTC
None
diff mbox

Patch

--- a/opensm/opensm/osm_qos.c
+++ b/opensm/opensm/osm_qos.c
@@ -233,7 +233,8 @@  static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node,
 	for (i = 0; i < num_ports; i++) {
 		p = osm_node_get_physp_ptr(node, i);
 		force_update = p->need_update || sm->p_subn->need_update;
-		for (j = 1; j < num_ports; j++)
+		j = ib_switch_info_is_enhanced_port0(&node->sw->switch_info) ? 0 : 1;
+		for (; j < num_ports; j++)
 			if (sl2vl_update_table(sm, p, i, i << 8 | j,
 					       force_update, &qcfg->sl2vl))
 				ret = -1;