From patchwork Tue Feb 5 15:10:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dorfman, Eli" X-Patchwork-Id: 2098071 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 76CFADF23E for ; Tue, 5 Feb 2013 15:13:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755766Ab3BEPNe (ORCPT ); Tue, 5 Feb 2013 10:13:34 -0500 Received: from hop-nat-141.emc.com ([168.159.213.141]:28847 "EHLO mexforward.lss.emc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755791Ab3BEPNc convert rfc822-to-8bit (ORCPT ); Tue, 5 Feb 2013 10:13:32 -0500 Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r15FD4YX016820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Feb 2013 10:13:05 -0500 Received: from mailhub.lss.emc.com (mailhubhoprd01.lss.emc.com [10.254.221.251]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Tue, 5 Feb 2013 10:12:57 -0500 Received: from mxhub11.corp.emc.com (mxhub11.corp.emc.com [10.254.92.106]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r15FCu0H027934; Tue, 5 Feb 2013 10:12:56 -0500 Received: from mx42a.corp.emc.com ([169.254.1.222]) by mxhub11.corp.emc.com ([10.254.92.106]) with mapi; Tue, 5 Feb 2013 10:12:55 -0500 From: "Dorfman, Eli" To: Alex Netes , "linux-rdma@vger.kernel.org" Date: Tue, 5 Feb 2013 10:10:50 -0500 Subject: RE: [PATCH] opensm/osm_sm_state_mgr.c: Start sweep immedeately when recieving HANDOVER in DISCOVERING state Thread-Topic: [PATCH] opensm/osm_sm_state_mgr.c: Start sweep immedeately when recieving HANDOVER in DISCOVERING state Thread-Index: Ac4DrZCzMNggXWHbQIyKTR/R8MJFTQABWsq9 Message-ID: <58D7FA4D54027743B71E05095945B961016359C3FE@MX42A.corp.emc.com> References: <20130205143017.GE13151@calypso.mtl.com> In-Reply-To: <20130205143017.GE13151@calypso.mtl.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-EMM-MHVC: 1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Thanks for the fast response and update. Which opensm & OFED versions will include this fix? Note that my email has changed to emc.com - please update. Thanks again, Eli diff --git a/opensm/osm_sm_state_mgr.c b/opensm/osm_sm_state_mgr.c index 7da8258..c996ea2 100644 --- a/opensm/osm_sm_state_mgr.c +++ b/opensm/osm_sm_state_mgr.c @@ -294,11 +294,13 @@ ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm, break; case OSM_SM_SIGNAL_HANDOVER: /* - * Do nothing. We will discover it later on. If we already discovered - * this SM, and got the HANDOVER - this means the remote SM is of - * lower priority. In this case we will stop polling it (since it is - * a lower priority SM in STANDBY state). + * Signal for a new sweep. We need to discover the other SM. + * If we already discovered this SM, and got the + * HANDOVER - this means the remote SM is of lower priority. + * In this case we will stop polling it (since it is a lower + * priority SM in STANDBY state). */ + osm_sm_signal(sm, OSM_SIGNAL_SWEEP); break; default: sm_state_mgr_signal_error(sm, signal);