Move the state to ERROR if rdma_resolve_route() fails.
Signed-off-by: Steve Wise <[EMAIL PROTECTED]>
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);
}
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general