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
6565 };
6666
6767 struct ocrdma_alloc_pd_ureq {
68− __u64 rsvd1;
68+ __u32 rsvd[2];
6969 };
7070
7171 struct ocrdma_alloc_pd_uresp {
@@ -73,7 +73,7 @@ struct ocrdma_alloc_pd_uresp { · 1 unmodified line
7373 __u32 dpp_enabled;
7474 __u32 dpp_page_addr_hi;
7575 __u32 dpp_page_addr_lo;
76− __u64 rsvd1;
76+ __u32 rsvd[2];
7777 };
7878
7979 struct 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