From patchwork Mon Mar 10 15:57: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: 3804011 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BD36F9F369 for ; Mon, 10 Mar 2014 15:57:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE4FC20260 for ; Mon, 10 Mar 2014 15:57:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1318020117 for ; Mon, 10 Mar 2014 15:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753035AbaCJP5j (ORCPT ); Mon, 10 Mar 2014 11:57:39 -0400 Received: from mail-bk0-f51.google.com ([209.85.214.51]:45300 "EHLO mail-bk0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753226AbaCJP5j (ORCPT ); Mon, 10 Mar 2014 11:57:39 -0400 Received: by mail-bk0-f51.google.com with SMTP id 6so1231113bkj.10 for ; Mon, 10 Mar 2014 08:57:38 -0700 (PDT) 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=XK+O+SC2YtSss9JWlDFZBaSECMSQpqI2Zbvtiv2ykfQ=; b=ND319obfDvnHvqIUC9IQMybXAvlrLgRxCY+BLhKAbubtfNcelZw6fZZ0zfd7vuAtJk Ud9cX2JvCpi9vHmM89l8+D/wRXX51tpL97DBBjjO4jZ4DUAI+cGUxu4OnB2t+UW4AM6K NIE3ro4Mt6uBcUF/z3se/XiTvwnok47NvTLCnSFklb1DGBebc8tSnPSewATXE3VqpIiP SuMw5vDPpjq9iGrt6k0kFXjqDmxDFMiZdAPQ5mY5+fs4ERDSqf94K0ZKk07S+gh/hTN3 SHrRoYzCNxfwkCNJgSx1CH3bKjJbj77JGoY2c3nuzWIyGDJwF51tRPHUIouLgLqcRXpE cgzA== X-Gm-Message-State: ALoCoQluDi92Fdg+X96BES1kmqkPn7uYdyQAuVuhhUId/ca4m13s1vl5igq3f9SnzR4s5D6dxC1G X-Received: by 10.205.76.71 with SMTP id zd7mr1409525bkb.29.1394467057863; Mon, 10 Mar 2014 08:57:37 -0700 (PDT) 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 p5sm12127517bkh.1.2014.03.10.08.57.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 08:57:36 -0700 (PDT) Message-ID: <531DE0ED.2000005@dev.mellanox.co.il> Date: Mon, 10 Mar 2014 11:57:33 -0400 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 Subject: [PATCH opensm] osm_node_info_rcv.c: Update NodeInfo.SysImageGUID on heavy sweep 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, T_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: Tue, 7 Aug 2012 10:58:16 +0300 Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- opensm/osm_node_info_rcv.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/opensm/osm_node_info_rcv.c b/opensm/osm_node_info_rcv.c index 499d9cb..622644e 100644 --- a/opensm/osm_node_info_rcv.c +++ b/opensm/osm_node_info_rcv.c @@ -864,6 +864,13 @@ static void ni_rcv_process_existing(IN osm_sm_t * sm, IN osm_node_t * p_node, break; } + if ( p_ni->sys_guid != p_node->node_info.sys_guid) { + OSM_LOG(sm->p_log, OSM_LOG_DEBUG, "Updated SysImageGUID: 0x%" + PRIx64 " for node 0x%" PRIx64 "\n", + cl_ntoh64(p_ni->sys_guid), + cl_ntoh64(p_ni->node_guid)); + p_node->node_info.sys_guid = p_ni->sys_guid; + } ni_rcv_set_links(sm, p_node, port_num, p_ni_context); Exit: