diff mbox

[10/27] Fix SL2VL configuration

Message ID 1343750695-28063-10-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes July 31, 2012, 4:04 p.m. UTC
Set optimized SL2VL table only if node is maked as 'need_update'.
Set SL2VL tale for port that marked as 'need_update'.

Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Vladimir Koushnir <vladimirk@mellanox.com>
---
 opensm/osm_qos.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/opensm/osm_qos.c b/opensm/osm_qos.c
index dd08ac0..ce48867 100644
--- a/opensm/osm_qos.c
+++ b/opensm/osm_qos.c
@@ -318,7 +318,7 @@  static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node,
 			}
 
 		}
-		force_update = p->need_update || sm->p_subn->need_update;
+		force_update = node->sw->need_update || sm->p_subn->need_update;
 		if (sl2vl_update_table(sm, p0, 0, 0x30000, force_update,
 					&qcfg->sl2vl, port_mad_list))
 			ret = -1;
@@ -331,6 +331,8 @@  static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node,
 			if (ib_port_info_get_port_state(&p->port_info) ==
 			    IB_LINK_DOWN)
 				continue;
+
+			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,