linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] opensm/osm_req.c: In req_determine_mkey, use osm_physp APIs
@ 2012-12-03 15:25 Hal Rosenstock
  0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2012-12-03 15:25 UTC (permalink / raw)
  To: Alex Netes
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Jim Foraker


rather tha direct accesses to physp struct

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 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
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-03 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 15:25 [PATCH 2/2] opensm/osm_req.c: In req_determine_mkey, use osm_physp APIs Hal Rosenstock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).