]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
ucmatose: Remove connect parameter passed into rdma_accept
authorSean Hefty <sean.hefty@intel.com>
Thu, 4 Oct 2012 19:01:50 +0000 (12:01 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 4 Oct 2012 19:51:01 +0000 (12:51 -0700)
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 <sean.hefty@intel.com>
examples/cmatose.c

index 9ea6777d88fa9a75c891dd3c80a108f3228cef73..2b6b2b132d824b9c167c52fde932cbd644b88d09 100644 (file)
@@ -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;