From patchwork Tue Oct 13 17:56:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 53470 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9DHvTJj022750 for ; Tue, 13 Oct 2009 17:57:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754026AbZJMRz1 (ORCPT ); Tue, 13 Oct 2009 13:55:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758894AbZJMRz1 (ORCPT ); Tue, 13 Oct 2009 13:55:27 -0400 Received: from mail-fx0-f227.google.com ([209.85.220.227]:59935 "EHLO mail-fx0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754026AbZJMRz0 (ORCPT ); Tue, 13 Oct 2009 13:55:26 -0400 Received: by fxm27 with SMTP id 27so10500178fxm.17 for ; Tue, 13 Oct 2009 10:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=a9FK00vDEqOEUdPEyF3lgGYaHp5aVKcBj+ZBeJgMBSg=; b=ripery/3mecnQf3JKW6i36FZFDVTe0Byq/pzvlktwqC0SNwyBjamK2tObI9W0VoMmO YRv++QaTEqsBGLRgT7FrE/HsX4JxXU96C8PqKz8G6qeEqpucPSVAHDVQssElpVJXllyJ 2yEZOOdRV6Wevz5atdx9eKmlvxvAXQZtY99zU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=aeFhukNCFq2AylQKuhSuv9zJpUyN9NV8tYLQK8yDp3bR4ufqf7+sxT+zGYAPRWadh9 iaurnVj5syk7Or44gLp9CkdvPD01DtusG+5Peu+fZlJui8zNYDX2gvD0xzm8bNemWUO+ BVAy5CaXiE0fjYwVVXHgjF+vk+cbpY9/rhpL0= Received: by 10.204.151.210 with SMTP id d18mr6419434bkw.203.1255456488320; Tue, 13 Oct 2009 10:54:48 -0700 (PDT) Received: from me.localdomain (bzq-79-179-69-57.red.bezeqint.net [79.179.69.57]) by mx.google.com with ESMTPS id 19sm7753029fkr.53.2009.10.13.10.54.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Oct 2009 10:54:47 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id 0C1A812563; Tue, 13 Oct 2009 19:56:47 +0200 (IST) Date: Tue, 13 Oct 2009 19:56:47 +0200 From: Sasha Khapyorsky To: linux-rdma@vger.kernel.org Cc: Hal Rosenstock Subject: [PATCH] opensm/osm_state_mgr.c: in cleanup_switch() check only relevant LFT part Message-ID: <20091013175647.GS13830@me> References: <20091013130002.GA20173@comcast.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091013130002.GA20173@comcast.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c index c40c9d3..4035657 100644 --- a/opensm/opensm/osm_state_mgr.c +++ b/opensm/opensm/osm_state_mgr.c @@ -1011,7 +1011,7 @@ static void cleanup_switch(cl_map_item_t * item, void *log) if (!sw->new_lft) return; - if (memcmp(sw->lft, sw->new_lft, sw->lft_size)) + if (memcmp(sw->lft, sw->new_lft, sw->max_lid_ho + 1)) osm_log(log, OSM_LOG_ERROR, "ERR 331D: " "LFT of switch 0x%016" PRIx64 " is not up to date\n", cl_ntoh64(sw->p_node->node_info.node_guid));