From: Sean Hefty Date: Thu, 4 Oct 2012 19:01:50 +0000 (-0700) Subject: ucmatose: Remove connect parameter passed into rdma_accept X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a38e0b1914f38d52b1c2780a5c4183df0e3fa460;p=~shefty%2Flibrdmacm.git ucmatose: Remove connect parameter passed into rdma_accept Pass in NULL for conn_param into rdma_accept to indicate that the passive side will use the values specified by the active side. Signed-off-by: Sean Hefty --- diff --git a/examples/cmatose.c b/examples/cmatose.c index 046d4522..ab3e7462 100644 --- a/examples/cmatose.c +++ b/examples/cmatose.c @@ -267,7 +267,6 @@ err: static int connect_handler(struct rdma_cm_id *cma_id) { struct cmatest_node *node; - struct rdma_conn_param conn_param; int ret; if (test.conn_index == connections) { @@ -287,10 +286,7 @@ static int connect_handler(struct rdma_cm_id *cma_id) if (ret) goto err2; - memset(&conn_param, 0, sizeof conn_param); - conn_param.responder_resources = 1; - conn_param.initiator_depth = 1; - ret = rdma_accept(node->cma_id, &conn_param); + ret = rdma_accept(node->cma_id, NULL); if (ret) { perror("cmatose: failure accepting"); goto err2;