From 8a92d0c3c8ce5f513dff974912143f6b0283f8e3 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 4 Oct 2012 12:01:50 -0700 Subject: [PATCH] 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 --- examples/cmatose.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/cmatose.c b/examples/cmatose.c index 9ea6777d..2b6b2b13 100644 --- a/examples/cmatose.c +++ b/examples/cmatose.c @@ -266,7 +266,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) { @@ -286,10 +285,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; -- 2.46.0