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

union ibv_gid::raw must be defined as "unsigned char" #25

Open
alex-zadara opened this issue Jan 30, 2020 · 0 comments
Open

union ibv_gid::raw must be defined as "unsigned char" #25

alex-zadara opened this issue Jan 30, 2020 · 0 comments

Comments

@alex-zadara
Copy link

diff --git a/rdma/libibverbs.pxd b/rdma/libibverbs.pxd
index 055a6d1..3ff90b1 100644
--- a/rdma/libibverbs.pxd
+++ b/rdma/libibverbs.pxd
@@ -6,7 +6,7 @@ include 'libibverbs_enums.pxd'
 cdef extern from 'infiniband/verbs.h':

     union ibv_gid:
-        char raw[16]
+        unsigned char raw[16]

This is how it is defined in verbs.h (OFED 4.4):

union ibv_gid {
	uint8_t			raw[16];
	struct {
		uint64_t	subnet_prefix;
		uint64_t	interface_id;
	} global;
};
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

1 participant