Message ID | 1343750695-28063-26-git-send-email-alexne@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Alex Netes |
Headers | show |
diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c index 00e9c72..183be36 100644 --- a/opensm/osm_state_mgr.c +++ b/opensm/osm_state_mgr.c @@ -111,7 +111,8 @@ static void state_mgr_reset_switch_count(IN cl_map_item_t * p_map_item, { osm_switch_t *p_sw = (osm_switch_t *) p_map_item; - p_sw->need_update = 1; + if (p_sw->max_lid_ho != 0) + p_sw->need_update = 1; } static void state_mgr_get_sw_info(IN cl_map_item_t * p_object, IN void *context) diff --git a/opensm/osm_ucast_mgr.c b/opensm/osm_ucast_mgr.c index f33cc4c..b4cf0f2 100644 --- a/opensm/osm_ucast_mgr.c +++ b/opensm/osm_ucast_mgr.c @@ -907,7 +907,7 @@ static void ucast_mgr_set_fwd_top(IN cl_map_item_t * p_map_item, OSM_LOG_ENTER(p_mgr->p_log); - CL_ASSERT(p_sw); + CL_ASSERT(p_sw && p_sw->max_lid_ho); p_node = p_sw->p_node;