From patchwork Mon Mar 10 15:58:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3804021 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 73C3A9F369 for ; Mon, 10 Mar 2014 15:58:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BD3920260 for ; Mon, 10 Mar 2014 15:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C248520117 for ; Mon, 10 Mar 2014 15:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbaCJP6M (ORCPT ); Mon, 10 Mar 2014 11:58:12 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:50341 "EHLO mail-bk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753162AbaCJP6L (ORCPT ); Mon, 10 Mar 2014 11:58:11 -0400 Received: by mail-bk0-f44.google.com with SMTP id mz13so1206993bkb.3 for ; Mon, 10 Mar 2014 08:58:10 -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=Ej2J04i9kZNlxs7zQDUmlNlxMVAY+iaBJQ/jcFC1ZGw=; b=LLoSuquzKTgANC/HKpdlyLzHNRdh9GZUkWlPOlAstKnN0YCbe6DvGmrOFCl4Q3fS+m TEO/CIcuPeKGO2sZAJHJXWwqlZdU1U31QF/gRIIprmr1DTKV5wpccmBBS1RBB744gHA/ 7i+jXszAo2mYXdjYRP2UHScx2TAkKzcu3BYT/axUeSahHupirotbZUAf3SqM6Ud6Gvuh G3tIgskN2bEML3zRXzAmGhuLEDzd46j/Qgow0Xn8N77WM6jqLZZaHUK7X8r+GCQ2VEDy +y3cKMLC54lofj70OWQB/GWdPgnaW5NzEnkFmKk8DlxKSXT8Ypzi7Z7T1WR7kmSNMtsZ J/tQ== X-Gm-Message-State: ALoCoQnPjizuRjwfUfLNaW8p6LLAYMHIF/TIO/g82hwd6U0Njwlx4IQJDMH9urop0MVI+X35eZwc X-Received: by 10.205.99.1 with SMTP id cq1mr12346894bkc.5.1394467090061; Mon, 10 Mar 2014 08:58:10 -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 u14sm12126360bkg.9.2014.03.10.08.58.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 08:58:09 -0700 (PDT) Message-ID: <531DE10E.7060309@dev.mellanox.co.il> Date: Mon, 10 Mar 2014 11:58:06 -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: Daniel Klein Subject: [PATCH opensm] osm_node_info_rcv.c: Update local copy of node info for known nodes 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: Daniel Klein Date: Thu, 6 Mar 2014 16:33:21 +0200 Update local copy of node info when it receives node info for existing node. Signed-off-by: Daniel Klein Signed-off-by: Hal Rosenstock --- opensm/osm_node_info_rcv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_node_info_rcv.c b/opensm/osm_node_info_rcv.c index a953c54..d445cc2 100644 --- a/opensm/osm_node_info_rcv.c +++ b/opensm/osm_node_info_rcv.c @@ -1137,9 +1137,9 @@ static void ni_rcv_process_existing(IN osm_sm_t * sm, IN osm_node_t * p_node, 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); + p_node->node_info = *p_ni; Exit: OSM_LOG_EXIT(sm->p_log);