From patchwork Tue Dec 15 17:03:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 67678 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBFH0ZJX029391 for ; Tue, 15 Dec 2009 17:00:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760607AbZLORAe (ORCPT ); Tue, 15 Dec 2009 12:00:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753126AbZLORAe (ORCPT ); Tue, 15 Dec 2009 12:00:34 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:59074 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760615AbZLORAe (ORCPT ); Tue, 15 Dec 2009 12:00:34 -0500 Received: by bwz27 with SMTP id 27so73415bwz.21 for ; Tue, 15 Dec 2009 09:00:32 -0800 (PST) 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=YVzGiGThR3e3waMdnbST91pYbGSgGn/gfm2cj6hgTtE=; b=tlqW6GNjrI+xIEPS0JqG+YrReu2eRaFboEgD/DPSeNfzCVUiXXt48Cs3k1xyQ3AU8f 2jVNTr/OrUbB641M+OXjICwpDncm2NhcP4YhiGIjgaeZjAVZEwXMPU6QJqD+XKQqN9Dl UtkDabpjEVTeCvB22DFuUcrDHYVavzMAInGU0= 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=dx+G8XZINgaK11DJv3UzgANi3fyIXnCJ7cAyK+Caxb9eBC2xT8GaaJMoKiJr7hy1n0 kdlwnlMFbteYuOA3K+rraSfzIKRx5ZSoUXy0THSWj/UCp4S0iR02dkDk15yicKlsuAO5 thCl0pLu1/23mIesno4CsB2hv4kyxFgtbfoQI= Received: by 10.102.211.34 with SMTP id j34mr2395544mug.5.1260896432209; Tue, 15 Dec 2009 09:00:32 -0800 (PST) Received: from me.localdomain (bzq-79-181-133-153.red.bezeqint.net [79.181.133.153]) by mx.google.com with ESMTPS id j10sm38827muh.56.2009.12.15.09.00.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Dec 2009 09:00:31 -0800 (PST) Received: by me.localdomain (Postfix, from userid 1000) id 53A3712064; Tue, 15 Dec 2009 19:03:17 +0200 (IST) Date: Tue, 15 Dec 2009 19:03:17 +0200 From: Sasha Khapyorsky To: Ira Weiny Cc: Hal Rosenstock , "linux-rdma@vger.kernel.org" Subject: Re: SRP issues with OpenSM 3.3.3 Message-ID: <20091215170317.GV5262@me> References: <20091214164334.064102f0.weiny2@llnl.gov> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091214164334.064102f0.weiny2@llnl.gov> 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_sa_path_record.c b/opensm/opensm/osm_sa_path_record.c index 7855be5..fbeef03 100644 --- a/opensm/opensm/osm_sa_path_record.c +++ b/opensm/opensm/osm_sa_path_record.c @@ -1236,6 +1236,8 @@ static ib_net16_t pr_rcv_get_end_points(IN osm_sa_t * sa, sa_status = IB_SA_MAD_STATUS_INVALID_GID; goto Exit; } + if (p_dgid) + *p_dgid = p_pr->dgid; } else dest_guid = p_pr->dgid.unicast.interface_id; @@ -1253,9 +1255,6 @@ static ib_net16_t pr_rcv_get_end_points(IN osm_sa_t * sa, sa_status = IB_SA_MAD_STATUS_INVALID_GID; goto Exit; } - - if (p_dgid) - *p_dgid = p_pr->dgid; } else { *pp_dest_port = 0; if (comp_mask & IB_PR_COMPMASK_DLID) {