aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDotan Barak <dotanb@mellanox.co.il>2006-02-13 19:31:57 -0500
committerRoland Dreier <rolandd@cisco.com>2006-03-20 13:08:14 -0500
commit8bdb0e8632e0f5061bd18b6934346cb609490135 (patch)
treebaa94a9ad7c97f4c025452ffbba2b7f6d8cc0af2 /include
parent7ccc9a24e01258a31ee2b964215e4ddddd2a02c4 (diff)
IB/uverbs: Support for query SRQ from userspace
Add support to uverbs to handle querying userspace SRQs (shared receive queues), including adding an ABI for marshalling requests and responses. The kernel midlayer already has the underlying ib_query_srq() function. Signed-off-by: Dotan Barak <dotanb@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_user_verbs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/rdma/ib_user_verbs.h b/include/rdma/ib_user_verbs.h
index 58662c34a3de..0edd3a6fe8f5 100644
--- a/include/rdma/ib_user_verbs.h
+++ b/include/rdma/ib_user_verbs.h
@@ -2,6 +2,7 @@
2 * Copyright (c) 2005 Topspin Communications. All rights reserved. 2 * Copyright (c) 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved. 3 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.
4 * Copyright (c) 2005 PathScale, Inc. All rights reserved. 4 * Copyright (c) 2005 PathScale, Inc. All rights reserved.
5 * Copyright (c) 2006 Mellanox Technologies. All rights reserved.
5 * 6 *
6 * This software is available to you under a choice of one of two 7 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU 8 * licenses. You may choose to be licensed under the terms of the GNU
@@ -613,6 +614,20 @@ struct ib_uverbs_modify_srq {
613 __u64 driver_data[0]; 614 __u64 driver_data[0];
614}; 615};
615 616
617struct ib_uverbs_query_srq {
618 __u64 response;
619 __u32 srq_handle;
620 __u32 reserved;
621 __u64 driver_data[0];
622};
623
624struct ib_uverbs_query_srq_resp {
625 __u32 max_wr;
626 __u32 max_sge;
627 __u32 srq_limit;
628 __u32 reserved;
629};
630
616struct ib_uverbs_destroy_srq { 631struct ib_uverbs_destroy_srq {
617 __u64 response; 632 __u64 response;
618 __u32 srq_handle; 633 __u32 srq_handle;