summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_cmd.c
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-05-23 16:31:36 -0700
committerRoland Dreier <roland@purestorage.com>2011-10-13 09:13:26 -0700
commit96104eda01695a26da2c8f7423ec0ba3509c8c97 (patch)
tree04e38bfe564245ebd9a62738d54a111b2d24da4a /drivers/infiniband/core/uverbs_cmd.c
parent59991f94eb32e954aa767f659eb642461e9e8b37 (diff)
downloadtalos-op-linux-96104eda01695a26da2c8f7423ec0ba3509c8c97.tar.gz
talos-op-linux-96104eda01695a26da2c8f7423ec0ba3509c8c97.zip
RDMA/core: Add SRQ type field
Currently, there is only a single ("basic") type of SRQ, but with XRC support we will add a second. Prepare for this by defining an SRQ type and setting all current users to IB_SRQT_BASIC. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r--drivers/infiniband/core/uverbs_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c
index c42699285f8e..48d21d09afe7 100644
--- a/drivers/infiniband/core/uverbs_cmd.c
+++ b/drivers/infiniband/core/uverbs_cmd.c
@@ -2013,6 +2013,7 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
attr.event_handler = ib_uverbs_srq_event_handler;
attr.srq_context = file;
+ attr.srq_type = IB_SRQT_BASIC;
attr.attr.max_wr = cmd.max_wr;
attr.attr.max_sge = cmd.max_sge;
attr.attr.srq_limit = cmd.srq_limit;
OpenPOWER on IntegriCloud