[openib-general] [PATCH] rping.c - indicate failure when rdma_resolve_addr returns an error

Steve Wise swise at opengridcomputing.com
Sun Apr 30 10:24:16 PDT 2006


Move the state to ERROR if rdma_resolve_route() fails.

Signed-off-by: Steve Wise <swise at opengridcomputing.com>



Index: rping.c
===================================================================
--- rping.c	(revision 6741)
+++ rping.c	(working copy)
@@ -161,6 +161,7 @@
 		cb->state = ADDR_RESOLVED;
 		ret = rdma_resolve_route(cma_id, 2000);
 		if (ret) {
+			cb->state = ERROR;
 			fprintf(stderr, "rdma_resolve_route error %d\n", ret);
 			sem_post(&cb->sem);
 		}




More information about the general mailing list