[ofa-general] [PATCH] udapl dtest, add delay option before accept
Arlin Davis
arlin.r.davis at intel.com
Wed Feb 28 16:55:17 PST 2007
Added optional delay feature to dtest before accept which is used to validate rdma_cm timeout
settings.
Signed-off by: Arlin Davis ardavis at ichips.intel.com
diff --git a/test/dtest/dtest.c b/test/dtest/dtest.c
index fe8a366..86b70cc 100644
--- a/test/dtest/dtest.c
+++ b/test/dtest/dtest.c
@@ -405,9 +405,6 @@ cleanup:
else
LOGPRINTF("%d unregister_rdma_memory done\n", getpid());
-
- if (delay) sleep(delay);
-
/* Free protection domain */
LOGPRINTF("%d Freeing pz\n",getpid());
start = get_time();
@@ -699,6 +696,8 @@ connect_ep( char *hostname, int conn_id )
return( DAT_ABORT );
}
+ if (delay) sleep(delay); /* use to test rdma_cma timeout logic */
+
/* accept connect request from client */
h_cr = event.event_data.cr_arrival_event_data.cr_handle;
LOGPRINTF("%d Accepting connect request from client\n",getpid());
@@ -1799,7 +1798,7 @@ void print_usage()
printf("c: use cno\n");
printf("v: verbose\n");
printf("p: polling\n");
- printf("d: delay before close\n");
+ printf("d: delay before accept\n");
printf("b: buf length to allocate\n");
printf("B: burst count, rdma and msgs \n");
printf("h: hostname\n");
More information about the general
mailing list