yipee wrote:
I think that I've noticed a problem in compiling user applications with a different compiler than the running-kernel modules compiler (x86 32bit vs. 64bit). For compiling an openib application on a 32bit x86 and running it on a 64bit AMD Opteron. When compiling a program with a 32bit gcc, the sizeof(struct cm_abi_event_resp) was 184 bytes (written to the kernel from ib_cm_get_event()) vs. the 192 bytes resulting from a x86_64 compiler. When ucm's ib_ucm_event() compares the sizeof() of the received cmd/buffer to sizeof(struct ib_ucm_event_resp) it finds a mismatch and returns -ENOSPC.

I think that we can fix this by adding padding to the end of these structures to align them to a 64-bit boundary.

Did you notice if any other data structures had this issue?

- Sean
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to