]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/ocrdma: Fix structure layout for ocrdma_alloc_pd
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 17:30:43 +0000 (11:30 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 23 Mar 2018 20:53:29 +0000 (14:53 -0600)
The udata's for alloc_pd cannot contain u64s due to alignment
constraints. Switch the two never-used u64's to arrays of u32 to reduce
the required struct alignment to 4 bytes.

These reserved fields are totally unnecessary, never written and never
read.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/uapi/rdma/ocrdma-abi.h

index e0475d59cdf00dc8dca0c9a002b2eb0a2c06ae2f..32ef8670583a32af60898492933141804a36d2b0 100644 (file)
@@ -65,7 +65,7 @@ struct ocrdma_alloc_ucontext_resp {
 };
 
 struct ocrdma_alloc_pd_ureq {
-       __u64 rsvd1;
+       __u32 rsvd[2];
 };
 
 struct ocrdma_alloc_pd_uresp {
@@ -73,7 +73,7 @@ struct ocrdma_alloc_pd_uresp {
        __u32 dpp_enabled;
        __u32 dpp_page_addr_hi;
        __u32 dpp_page_addr_lo;
-       __u64 rsvd1;
+       __u32 rsvd[2];
 };
 
 struct ocrdma_create_cq_ureq {