From patchwork Wed Mar 5 16:33:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3777471 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3289BBF540 for ; Wed, 5 Mar 2014 16:33:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65CAF20237 for ; Wed, 5 Mar 2014 16:33:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3602320222 for ; Wed, 5 Mar 2014 16:33:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753986AbaCEQdj (ORCPT ); Wed, 5 Mar 2014 11:33:39 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:34261 "EHLO mail-ee0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753355AbaCEQdj (ORCPT ); Wed, 5 Mar 2014 11:33:39 -0500 Received: by mail-ee0-f41.google.com with SMTP id t10so586564eei.0 for ; Wed, 05 Mar 2014 08:33:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=o6/1w/pdwP6eJS7xcsvmjrLGVmXJp2M7zGeQoLCW2yw=; b=iSudwrasZq+Hlw3QYYD8qg0hK0/uYa+SzAYMG33jJzhUE/5iQPtQuuRAKhBS2zj+n9 Tcxlgz9zdv0KO9pitRWOnpyJuZSMbUzBJoFP15w3vxyhoGoSEAbH6vWFYDXaEJPr3P1W GX+zLqnnowUy/A3NR9ecfuhKmtibAZVgvSOfaS+C9q4nsYlTjGMGNPyw9YMnbMp0TPfG JMpF9QxJMGyCAXulHVfhd6VWW535Gl3H/hIOYTOPXV1sI+iIuRoz+uigD0BEL7wTnnzh bUu32t49Hjq+NjiiU1DOMMCbOXl1Jq1KXvSZED9PPETLlFue70tb2tZKr2GB7z+yr0K2 izyQ== X-Gm-Message-State: ALoCoQmUOpXkG+CQjoNUc28UWrOQGKqodfLpGn6+vkHNXj1EjZZaGKtf3n4TvXCQTQK0WvNsmGXA X-Received: by 10.15.31.72 with SMTP id x48mr3151265eeu.107.1394037217888; Wed, 05 Mar 2014 08:33:37 -0800 (PST) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id y51sm10846233eeu.0.2014.03.05.08.33.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 08:33:36 -0800 (PST) Message-ID: <531751DD.7060906@dev.mellanox.co.il> Date: Wed, 05 Mar 2014 11:33:33 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Alex Netes , Vladimir Koushnir Subject: [PATCH opensm] osm_sm_state_mgr.c: Reconfigure the fabric when receiving HANDOVER/POLLING_TIMEOUT in MASTER state Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alex Netes 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. Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- opensm/osm_sm_state_mgr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_sm_state_mgr.c b/opensm/osm_sm_state_mgr.c index e5a11da..5e4b06a 100644 --- a/opensm/osm_sm_state_mgr.c +++ b/opensm/osm_sm_state_mgr.c @@ -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;