History

IB/core: Add on demand paging caps to ib_uverbs_ex_query_device

Add on-demand paging capabilities reporting to the extended query device verb. Yann Droneaud writes: Note: as offsetof() is used to retrieve the size of the lower chunk of the response, beware that it only works if the upper chunk is right after, without any implicit padding. And, as the size of the latter chunk is added to the base size, implicit padding at the end of the structure is not taken in account. Both point must be taken in account when extending the uverbs functionalities.

Haggai Eran committed 11 years ago

Commit f4056bf1 parent 02d1aa72 files · +30 −1Browse files

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

Unified · Split

include/uapi/rdma/ib_user_verbs.h+11−0
@@ -207,10 +207,21 @@ struct ib_uverbs_ex_query_device { · 206 unmodified lines
207207 __u32 reserved;
208208 };
209209
210+struct ib_uverbs_odp_caps {
211+ __u64 general_caps;
212+ struct {
213+ __u32 rc_odp_caps;
214+ __u32 uc_odp_caps;
215+ __u32 ud_odp_caps;
216+ } per_transport_caps;
217+ __u32 reserved;
218+};
219+
210220 struct ib_uverbs_ex_query_device_resp {
211221 struct ib_uverbs_query_device_resp base;
212222 __u32 comp_mask;
213223 __u32 response_length;
224+ struct ib_uverbs_odp_caps odp_caps;
214225 };
215226
216227 struct ib_uverbs_query_port {

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