diff mbox

[2/2] opensm/osm_req.c: In req_determine_mkey, use osm_physp APIs

Message ID 50BCC461.5060604@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock Dec. 3, 2012, 3:25 p.m. UTC
rather tha direct accesses to physp struct

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_req.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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