History

RDMA/rxe: Use structs to describe the uABI instead of opencoding

Open coding pointer math is not acceptable for describing the uABI in RDMA. Provide structs for all the cases. The udata is casted to the struct as close to the verbs entry point as possible for maximum clarity. Function signatures and so forth are revised to allow for this.

Jason Gunthorpe committed 8 years ago

Commit 0c43ab31 parent b92ec0f8 files · +116 −79Browse files

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

Unified · Split

include/uapi/rdma/rdma_user_rxe.h+22−0
@@ -144,4 +144,26 @@ struct rxe_recv_wqe { · 143 unmodified lines
144144 struct rxe_dma_info dma;
145145 };
146146
147+struct rxe_create_cq_resp {
148+ struct mminfo mi;
149+};
150+
151+struct rxe_resize_cq_resp {
152+ struct mminfo mi;
153+};
154+
155+struct rxe_create_qp_resp {
156+ struct mminfo rq_mi;
157+ struct mminfo sq_mi;
158+};
159+
160+struct rxe_create_srq_resp {
161+ struct mminfo mi;
162+ __u32 srq_num;
163+};
164+
165+struct rxe_modify_srq_cmd {
166+ __u64 mmap_info_addr;
167+};
168+
147169 #endif /* RDMA_USER_RXE_H */

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