From: Sean Hefty Date: Sun, 29 May 2011 06:26:06 +0000 (-0700) Subject: RDMA/cma: Support XRC QPs X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=18c441a6c3741991bfb87a3c6c541d30f0eb9c7c;p=openwrt%2Fstaging%2Fblogic.git RDMA/cma: Support XRC QPs Allow users to connect XRC QPs through the rdma_cm. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- 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;