]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
RDMA/cma: fix 32-bit user / 64-bit kernel mismatch issue
authorSean Hefty <sean.hefty@intel.com>
Fri, 6 Apr 2007 17:14:02 +0000 (10:14 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 6 Apr 2007 17:14:02 +0000 (10:14 -0700)
A 64-bit kernel will pad the size of the event structure to a
multiple of 8-bytes.  When using a 32-bit kernel, the structure is left
aligned to a 4-byte boundary.  This results in the userspace event structure
being too small because of the padding.  Fix this by increasing the padding
at the end of the userspace event structure.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
include/rdma/rdma_cma_abi.h

index 2ffcf929ce8cd59245db25c6df458ca408c004e2..8f3e42d554ffc1e3221543c54a1d46fdb86af3c4 100644 (file)
@@ -148,6 +148,7 @@ struct ucma_abi_ud_param {
        __u8 private_data[RDMA_MAX_PRIVATE_DATA];
        __u8 private_data_len;
        __u8 reserved[7];
+       __u8 reserved2[4];  /* Round to 8-byte boundary to support 32/64 */
 };
 
 struct ucma_abi_connect {