From patchwork Mon Jul 30 11:34:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1254221 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 10C91DF24C for ; Mon, 30 Jul 2012 11:34:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755Ab2G3Lex (ORCPT ); Mon, 30 Jul 2012 07:34:53 -0400 Received: from mail-qa0-f53.google.com ([209.85.216.53]:50723 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329Ab2G3Lex (ORCPT ); Mon, 30 Jul 2012 07:34:53 -0400 Received: by qaas11 with SMTP id s11so801689qaa.19 for ; Mon, 30 Jul 2012 04:34:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=YQ9GIoRu3xA5eNmjOGBy1XS2KZcjYuBC7HmRGD91vCc=; b=Y6mWOD1iRzIK7DZqQHN8NJvWx+I7MwtLV0oU0W2vqDXXJRIM4vYGvWcB3640YO7HBm C2D19zAklLHiqkw+L8eoKcNgnmLoJPDHRiub14JuPTFJJutL5AeuV31vQjjdLvnRQSVQ qsCYYJDSZwIA9fHkaVdbVEKo4frpvdIgiMNoDM5kik+inNLTWMak7esP5oo0ip2KjqoC 6pZl/1dFEVYhs3LRl08tBYbnsLiPzAuyZ5cG0DBFvZlz4NOAUx/PFRQEBS6DCRi7qDqm MabRLvH0BxdkWN5RZ7Lz9SiC5RjOOHMHO3RnimHteIxeRj6K1ZwzWItTjyr3c324aGkN p56g== Received: by 10.224.26.195 with SMTP id f3mr10422328qac.71.1343648092353; Mon, 30 Jul 2012 04:34:52 -0700 (PDT) Received: from [172.25.5.27] ([193.47.165.251]) by mx.google.com with ESMTPS id v3sm7766428qaz.5.2012.07.30.04.34.50 (version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 04:34:51 -0700 (PDT) Message-ID: <50167157.9080301@dev.mellanox.co.il> Date: Mon, 30 Jul 2012 07:34:47 -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: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] opensm/osm_sa_path_record.c: Restore osm_get_path_params functionality X-Gm-Message-State: ALoCoQlokXXnZhRns785rcfuylmcB+IIwNXSddefVmJKczDsdF/smB9MlRnp94a4Nm9m6GIH2Tbl Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org based on alias GUID support which caused change to internal pr_rcv_get_path_parms API Signed-off-by: Hal Rosenstock --- -- 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_sa_path_record.c b/opensm/osm_sa_path_record.c index 70e7b61..dd15046 100644 --- a/opensm/osm_sa_path_record.c +++ b/opensm/osm_sa_path_record.c @@ -854,7 +854,17 @@ ib_api_status_t osm_get_path_params(IN osm_sa_t * sa, IN const uint16_t dlid_ho, OUT osm_path_parms_t * p_parms) { - return 1; + osm_alias_guid_t *p_src_alias_guid, *p_dest_alias_guid; + ib_path_rec_t pr; + + memset(&pr, 0, sizeof(ib_path_rec_t)); + p_src_alias_guid = osm_get_alias_guid_by_guid(sa->p_subn, + osm_port_get_guid(p_src_port)); + p_dest_alias_guid = osm_get_alias_guid_by_guid(sa->p_subn, + osm_port_get_guid(p_dest_port)); + return pr_rcv_get_path_parms(sa, &pr, + p_src_alias_guid, slid_ho, + p_dest_alias_guid, dlid_ho, 0, p_parms); } static void pr_rcv_build_pr(IN osm_sa_t * sa,