Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in ibverbs.pyx::to_ah_attr #24

Open
alex-zadara opened this issue Jan 30, 2020 · 1 comment
Open

Bug in ibverbs.pyx::to_ah_attr #24

alex-zadara opened this issue Jan 30, 2020 · 1 comment

Comments

@alex-zadara
Copy link

diff --git a/rdma/ibverbs.pyx b/rdma/ibverbs.pyx
index 16891a6..59bddf0 100644
--- a/rdma/ibverbs.pyx
+++ b/rdma/ibverbs.pyx
@@ -108,7 +108,7 @@ cdef to_ah_attr(c.ibv_ah_attr *cattr, object attr):
                 raise TypeError("attr.grh must be a global_route")
             if not isinstance(attr.grh.dgid, IBA.GID):
                 raise TypeError("attr.grh.dgid must be an IBA.GID")
-            tmp = <uint8_t *>PyString_AsString(attr.DGID);
+            tmp = <uint8_t *>PyString_AsString(attr.grh.dgid);
             for 0 <= i < 16:
                 cattr.grh.dgid.raw[i] = tmp[i];
             cattr.grh.flow_label = attr.grh.flow_label
@@ -466,6 +466,22 @@ cdef class Context:
                          active_speed = cattr.active_speed,
                          phys_state = cattr.phys_state)
@jgunthorpe
Copy link
Owner

can you send these two as a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants