RDMA/cma: Support XRC QPs
authorSean Hefty <sean.hefty@intel.com>
Sun, 29 May 2011 06:26:06 +0000 (23:26 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Oct 2011 16:41:36 +0000 (09:41 -0700)
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>
drivers/infiniband/core/cma.c

index 8801ea91b0a66251e17829c84538e5ab1f1e159e..b1fd805c9d6c824efd6f2f3d68fcdb93570daffe 100644 (file)
@@ -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;