Skip to contentSkip to conversation

osm_sm_state_mgr.c: Reconfigure the fabric when receiving HANDOVER/POLLING_TIMEOUT in MASTER state

PATCH New Hal Rosenstock 1 participant 1 message Mar 5, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_sm_state_mgr.c: Reconfigure the fabric when receiving HANDOVER/POLLING_TIMEOUT in MASTER state

From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>
Date: Sun, 5 Aug 2012 11:50:07 +0300

When SM in MASTER state, receives HANDOVER request from some other MASTER SM or it didn't response (POLLING_TIMEOUT), we must reconfigure the whole fabric as it was the first SM sweep, as we don't know what the other MASTER SM configured earlier.

---
 opensm/osm_sm_state_mgr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
opensm/osm_sm_state_mgr.c +2 -0
index e5a11da..5e4b06a 100644
@@ -450,6 +450,8 @@ ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm,
 			 */
 			sm->p_subn->set_client_rereg_on_sweep = TRUE;
 			sm->polling_sm_guid = 0;
+			sm->p_subn->first_time_master_sweep = TRUE;
+			sm->p_subn->coming_out_of_standby = TRUE;
 			sm->p_subn->force_heavy_sweep = TRUE;
 			osm_sm_signal(sm, OSM_SIGNAL_SWEEP);
 			break;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html