aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ocrdma-abi.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-03-19 11:30:43 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-03-23 14:53:29 -0600
commitf64705b8715a090cd5526a2c082eeb199a51e8b2 (patch)
tree32d1e6690944133feb30bd3b32d038bf9aa0640a /include/uapi/rdma/ocrdma-abi.h
parentiw_cxgb4: Add ib_device->get_netdev support (diff)
downloadlinux-dev-f64705b8715a090cd5526a2c082eeb199a51e8b2.tar.xz
linux-dev-f64705b8715a090cd5526a2c082eeb199a51e8b2.zip
RDMA/ocrdma: Fix structure layout for ocrdma_alloc_pd
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>
Diffstat (limited to 'include/uapi/rdma/ocrdma-abi.h')
-rw-r--r--include/uapi/rdma/ocrdma-abi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/rdma/ocrdma-abi.h b/include/uapi/rdma/ocrdma-abi.h
index e0475d59cdf0..32ef8670583a 100644
--- a/include/uapi/rdma/ocrdma-abi.h
+++ b/include/uapi/rdma/ocrdma-abi.h
@@ -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 {