History

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.

Jason Gunthorpe committed 8 years ago

Commit f64705b1 parent f215a3d1 file · +2 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/rdma/ocrdma-abi.h+2−2
@@ -65,7 +65,7 @@ struct ocrdma_alloc_ucontext_resp { · 64 unmodified lines
65};65};
66 66
67struct ocrdma_alloc_pd_ureq {67struct ocrdma_alloc_pd_ureq {
68 __u64 rsvd1;68 __u32 rsvd[2];
69};69};
70 70
71struct ocrdma_alloc_pd_uresp {71struct ocrdma_alloc_pd_uresp {
@@ -73,7 +73,7 @@ struct ocrdma_alloc_pd_uresp { · 1 unmodified line
73 __u32 dpp_enabled;73 __u32 dpp_enabled;
74 __u32 dpp_page_addr_hi;74 __u32 dpp_page_addr_hi;
75 __u32 dpp_page_addr_lo;75 __u32 dpp_page_addr_lo;
76 __u64 rsvd1;76 __u32 rsvd[2];
77};77};
78 78
79struct ocrdma_create_cq_ureq {79struct ocrdma_create_cq_ureq {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t