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>
__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 {