summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-05-29 08:26:06 +0200
committerRoland Dreier <roland@purestorage.com>2011-10-13 18:41:36 +0200
commit18c441a6c3741991bfb87a3c6c541d30f0eb9c7c (patch)
tree560fed8fd7d8c535603ab9e74550cd76cff9d7b9 /drivers/infiniband
parentRDMA/ucm: Allow user to specify QP type when creating id (diff)
downloadlinux-18c441a6c3741991bfb87a3c6c541d30f0eb9c7c.tar.xz
linux-18c441a6c3741991bfb87a3c6c541d30f0eb9c7c.zip
RDMA/cma: Support XRC QPs
Allow users to connect XRC QPs through the rdma_cm. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 8801ea91b0a6..b1fd805c9d6c 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2573,7 +2573,7 @@ static int cma_connect_ib(struct rdma_id_private *id_priv,
req.service_id = cma_get_service_id(id_priv->id.ps,
(struct sockaddr *) &route->addr.dst_addr);
req.qp_num = id_priv->qp_num;
- req.qp_type = IB_QPT_RC;
+ req.qp_type = id_priv->id.qp_type;
req.starting_psn = id_priv->seq_num;
req.responder_resources = conn_param->responder_resources;
req.initiator_depth = conn_param->initiator_depth;