aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-05-25 20:08:38 -0400
committerRoland Dreier <roland@purestorage.com>2011-10-13 12:29:18 -0400
commit8541f8de0583f562c652008a4e7a65e537842a7e (patch)
treeaf4e70e38a18534cf30d311aebc18e15285265a5 /include/rdma
parent53d0bd1e7ff2fc626321f337c609fb76ae5d12c9 (diff)
RDMA/uverbs: Export XRC SRQs to user space
We require additional information to create XRC SRQs than we can exchange using the existing create SRQ ABI. Provide an enhanced create ABI for extended SRQ types. Based on patches by Jack Morgenstein <jackm@dev.mellanox.co.il> and Roland Dreier <roland@purestorage.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_user_verbs.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/rdma/ib_user_verbs.h b/include/rdma/ib_user_verbs.h
index b5cb63f41f0f..100abbbd6e6e 100644
--- a/include/rdma/ib_user_verbs.h
+++ b/include/rdma/ib_user_verbs.h
@@ -83,7 +83,8 @@ enum {
83 IB_USER_VERBS_CMD_DESTROY_SRQ, 83 IB_USER_VERBS_CMD_DESTROY_SRQ,
84 IB_USER_VERBS_CMD_POST_SRQ_RECV, 84 IB_USER_VERBS_CMD_POST_SRQ_RECV,
85 IB_USER_VERBS_CMD_OPEN_XRCD, 85 IB_USER_VERBS_CMD_OPEN_XRCD,
86 IB_USER_VERBS_CMD_CLOSE_XRCD 86 IB_USER_VERBS_CMD_CLOSE_XRCD,
87 IB_USER_VERBS_CMD_CREATE_XSRQ
87}; 88};
88 89
89/* 90/*
@@ -665,11 +666,25 @@ struct ib_uverbs_create_srq {
665 __u64 driver_data[0]; 666 __u64 driver_data[0];
666}; 667};
667 668
669struct ib_uverbs_create_xsrq {
670 __u64 response;
671 __u64 user_handle;
672 __u32 srq_type;
673 __u32 pd_handle;
674 __u32 max_wr;
675 __u32 max_sge;
676 __u32 srq_limit;
677 __u32 reserved;
678 __u32 xrcd_handle;
679 __u32 cq_handle;
680 __u64 driver_data[0];
681};
682
668struct ib_uverbs_create_srq_resp { 683struct ib_uverbs_create_srq_resp {
669 __u32 srq_handle; 684 __u32 srq_handle;
670 __u32 max_wr; 685 __u32 max_wr;
671 __u32 max_sge; 686 __u32 max_sge;
672 __u32 reserved; 687 __u32 srqn;
673}; 688};
674 689
675struct ib_uverbs_modify_srq { 690struct ib_uverbs_modify_srq {