From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Khapyorsky Subject: Re: [PATCH] opensm/osm_lid_mgr: use 'first_time_master_sweep' flag Date: Sat, 22 May 2010 16:09:41 +0300 Message-ID: <20100522130941.GP28549@me> References: <20100426104838.GS23994@me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20100426104838.GS23994@me> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-rdma Cc: Eli Dorfman , Alex Netes List-Id: linux-rdma@vger.kernel.org On 13:48 Mon 26 Apr , Sasha Khapyorsky wrote: > > Use 'first_time_master_sweep' as initial sweep indication instead of > 'coming_out_of_standby'. The last flag will be set only when OpenSM > previously was in standby state, this doesn't cover some other cases > such as temporary SM port disconnection. > > Signed-off-by: Sasha Khapyorsky > --- > opensm/opensm/osm_lid_mgr.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c > index 0fd3b20..84f3508 100644 > --- a/opensm/opensm/osm_lid_mgr.c > +++ b/opensm/opensm/osm_lid_mgr.c > @@ -304,7 +304,7 @@ static int lid_mgr_init_sweep(IN osm_lid_mgr_t * p_mgr) > info we might have. > Do this only if the honor_guid2lid_file option is FALSE. If not, then > need to honor this file. */ > - if (p_mgr->p_subn->coming_out_of_standby == TRUE) { > + if (p_mgr->p_subn->first_time_master_sweep == TRUE) { Actually this changes the current behavior. Flag 'coming_out_of_standby' is not set on first initial sweep and 'first_time_master_sweep' is. So I'm reverting this patch yet up to more cleanup will be performed. Sasha > osm_db_clear(p_mgr->p_g2l); > if (p_mgr->p_subn->opt.honor_guid2lid_file == FALSE) { > OSM_LOG(p_mgr->p_log, OSM_LOG_DEBUG, > -- > 1.7.0.4 > -- 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