From: Sean Hefty Date: Tue, 14 Jun 2011 18:11:58 +0000 (-0700) Subject: librdmacm: Do not wait in rdma_accept for UD QPs X-Git-Tag: v1.0.15~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=332b203d1a3035d56bd291f3b079714c3d29bc07;p=~shefty%2Flibrdmacm.git librdmacm: Do not wait in rdma_accept for UD QPs There are no additional connection events to process for UD QPs after calling rdma_accept(). When using synchronous rdma_cm_id's, simply return to the user after sending the reply. Do not wait for additional events. This fixes a hang on the server side when setting up UD QP communication. Signed-off-by: Sean Hefty --- diff --git a/src/cma.c b/src/cma.c index eb339c95..bad1ba3f 100755 --- a/src/cma.c +++ b/src/cma.c @@ -1502,6 +1502,9 @@ int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param) return (ret >= 0) ? ERR(ENODATA) : -1; } + if (ucma_is_ud_qp(id->qp_type)) + return 0; + return ucma_complete(id_priv); }