aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorDotan Barak <dotanb@mellanox.co.il>2006-02-13 19:31:25 -0500
committerRoland Dreier <rolandd@cisco.com>2006-03-20 13:08:14 -0500
commit7ccc9a24e01258a31ee2b964215e4ddddd2a02c4 (patch)
tree486ab72c62f42952309ea764bc6bd30f56e87522 /include/rdma
parenta74cd4af0bfa9578594acbb711a958104c93b772 (diff)
IB/uverbs: Support for query QP from userspace
Add support to uverbs to handle querying userspace QPs (queue pairs), including adding an ABI for marshalling requests and responses. The kernel midlayer already has the underlying ib_query_qp() function. Signed-off-by: Dotan Barak <dotanb@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_user_verbs.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/rdma/ib_user_verbs.h b/include/rdma/ib_user_verbs.h
index fb94c08169ce..58662c34a3de 100644
--- a/include/rdma/ib_user_verbs.h
+++ b/include/rdma/ib_user_verbs.h
@@ -370,6 +370,47 @@ struct ib_uverbs_qp_dest {
370 __u8 port_num; 370 __u8 port_num;
371}; 371};
372 372
373struct ib_uverbs_query_qp {
374 __u64 response;
375 __u32 qp_handle;
376 __u32 attr_mask;
377 __u64 driver_data[0];
378};
379
380struct ib_uverbs_query_qp_resp {
381 struct ib_uverbs_qp_dest dest;
382 struct ib_uverbs_qp_dest alt_dest;
383 __u32 max_send_wr;
384 __u32 max_recv_wr;
385 __u32 max_send_sge;
386 __u32 max_recv_sge;
387 __u32 max_inline_data;
388 __u32 qkey;
389 __u32 rq_psn;
390 __u32 sq_psn;
391 __u32 dest_qp_num;
392 __u32 qp_access_flags;
393 __u16 pkey_index;
394 __u16 alt_pkey_index;
395 __u8 qp_state;
396 __u8 cur_qp_state;
397 __u8 path_mtu;
398 __u8 path_mig_state;
399 __u8 en_sqd_async_notify;
400 __u8 max_rd_atomic;
401 __u8 max_dest_rd_atomic;
402 __u8 min_rnr_timer;
403 __u8 port_num;
404 __u8 timeout;
405 __u8 retry_cnt;
406 __u8 rnr_retry;
407 __u8 alt_port_num;
408 __u8 alt_timeout;
409 __u8 sq_sig_all;
410 __u8 reserved[5];
411 __u64 driver_data[0];
412};
413
373struct ib_uverbs_modify_qp { 414struct ib_uverbs_modify_qp {
374 struct ib_uverbs_qp_dest dest; 415 struct ib_uverbs_qp_dest dest;
375 struct ib_uverbs_qp_dest alt_dest; 416 struct ib_uverbs_qp_dest alt_dest;