Skip to content

Commit

Permalink
Fix default value for resolve_path(reversible)
Browse files Browse the repository at this point in the history
This should have been True, we never use irreversible paths in
python-rdma.
  • Loading branch information
jgunthorpe committed Aug 28, 2014
1 parent f45054a commit 0319b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rdma/path.py
Expand Up @@ -403,9 +403,9 @@ def get_mad_path(mad,ep_addr,**kwargs):
else:
path = IBPath(mad.end_port,DLID=ep_addr,**kwargs);

return resolve_path(mad,path,True);
return resolve_path(mad,path);

def resolve_path(mad,path,reversible=False,properties=None):
def resolve_path(mad,path,reversible=True,properties=None):
"""Resolve *path* to a full path for use with a QP. *path* must have at
least a DGID or DLID set.
Expand Down
2 changes: 1 addition & 1 deletion tests/verbs.py
Expand Up @@ -69,7 +69,7 @@ def _get_loop(self,pd,qp_type,depth=16):
path_a = rdma.path.IBPath(self.end_port,qkey=999,
DGID=self.end_port.default_gid);
with rdma.get_gmp_mad(self.end_port,verbs=self.ctx) as vmad:
rdma.path.resolve_path(vmad,path_a,reversible=True);
rdma.path.resolve_path(vmad,path_a);
qp_a = pd.qp(qp_type,depth,cq,depth,cq,srq=srq);
rdma.path.fill_path(qp_a,path_a,max_rd_atomic=0);

Expand Down

0 comments on commit 0319b7e

Please sign in to comment.