From patchwork Mon Dec 3 15:25:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1834271 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 639AEDF2F9 for ; Mon, 3 Dec 2012 15:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754650Ab2LCPZY (ORCPT ); Mon, 3 Dec 2012 10:25:24 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:40738 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713Ab2LCPZY (ORCPT ); Mon, 3 Dec 2012 10:25:24 -0500 Received: by mail-la0-f46.google.com with SMTP id p5so2365349lag.19 for ; Mon, 03 Dec 2012 07:25:23 -0800 (PST) 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=pJGhfDdE6mWqmL07FznFnOj6JqNgWZNw07CsIZRaYXE=; b=ZPqipd8RBGE00YnAOVTVnv6vjUZT5SbbzMqNIjBpsxn3Ih6Vtdx3D/RGZgEsEREb+o ZT+uRxxIhEUJNo7CXJ/74s+X2tGWdlVoZM1ePsqzJfdGCWmumR+9vR/0f0d5HheAH6oQ rVRYkt4CYbs3GrLlnntV1ZMW+74zAOCYFrSLIXtDplC+MslHOCoj+V38F7YAIuv4AoX4 ralYmez5kAofP/VTfqgCeFFlOQlGahbOY/mnMr0+rUmgmjTQv+90JXWU95NaVfTscIds BV3D1jMfBm6f6JSxZ1PFkAIbSwVhbOdqJ/OrckOAF7M4ivkyolKMg4Xpj8P9wcRqvZ6W vjGA== Received: by 10.112.47.65 with SMTP id b1mr4251200lbn.14.1354548323572; Mon, 03 Dec 2012 07:25:23 -0800 (PST) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id hu6sm5465260lab.13.2012.12.03.07.25.22 (version=SSLv3 cipher=OTHER); Mon, 03 Dec 2012 07:25:23 -0800 (PST) Message-ID: <50BCC461.5060604@dev.mellanox.co.il> Date: Mon, 03 Dec 2012 10:25:21 -0500 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)" , Jim Foraker Subject: [PATCH 2/2] opensm/osm_req.c: In req_determine_mkey, use osm_physp APIs X-Gm-Message-State: ALoCoQkfyjj3X+oDloIAjOQgnL6i9iLhuKWVWDXAglDZN3aAkyCIVkPwIKcV3tbaNK5PCt2UUC2u Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org rather tha direct accesses to physp struct Signed-off-by: Hal Rosenstock --- opensm/osm_req.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_req.c b/opensm/osm_req.c index b48be48..caf94fb 100644 --- a/opensm/osm_req.c +++ b/opensm/osm_req.c @@ -97,10 +97,10 @@ static ib_net64_t req_determine_mkey(IN osm_sm_t * sm, p_physp = osm_node_get_physp_ptr(p_node, p_path->path[hop]); if (!p_physp) break; - p_physp = p_physp->p_remote_physp; + p_physp = osm_physp_get_remote(p_physp); if (!p_physp) break; - p_node = p_physp->p_node; + p_node = osm_physp_get_node_ptr(p_physp); } /* At this point, p_physp points at the outgoing physp on the