mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
f215a3d244
commit
f64705b871
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ struct ocrdma_alloc_ucontext_resp {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ocrdma_alloc_pd_ureq {
|
struct ocrdma_alloc_pd_ureq {
|
||||||
__u64 rsvd1;
|
__u32 rsvd[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ocrdma_alloc_pd_uresp {
|
struct ocrdma_alloc_pd_uresp {
|
||||||
|
@ -73,7 +73,7 @@ struct ocrdma_alloc_pd_uresp {
|
||||||
__u32 dpp_enabled;
|
__u32 dpp_enabled;
|
||||||
__u32 dpp_page_addr_hi;
|
__u32 dpp_page_addr_hi;
|
||||||
__u32 dpp_page_addr_lo;
|
__u32 dpp_page_addr_lo;
|
||||||
__u64 rsvd1;
|
__u32 rsvd[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ocrdma_create_cq_ureq {
|
struct ocrdma_create_cq_ureq {
|
||||||
|
|
Loading…
Reference in a new issue