[ofw] [COMMIT] librdmacm

Smith, Stan stan.smith at intel.com
Tue Jun 28 14:35:28 PDT 2011


Revision: 3179
Author: stansmith
Date: 1:38:43 PM, Tuesday, June 28, 2011
Message:
[LIBRDMACM] librdmacm: Map CONN_REFUSED to reject event
Report rejected connections as reject events, rather than connect errors.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
----
Modified : /gen1/trunk/ulp/librdmacm/src/cma.cpp

--- ulp/librdmacm/src/cma.cpp	Tue Jun 28 13:41:08 2011
+++ ulp/librdmacm/src/cma.cpp	Tue Jun 28 10:26:07 2011
@@ -1140,7 +1140,7 @@
 	return EINPROGRESS;
 
 err:
-	event->event.event = (event->event.status == WV_REJECTED) ?
+	event->event.event = (event->event.status == WV_CONNECTION_REFUSED) ?
 						 RDMA_CM_EVENT_REJECTED :
 						 RDMA_CM_EVENT_CONNECT_ERROR;
 	event->id_priv->state = cma_disconnected;
@@ -1164,7 +1164,9 @@
 		id_priv->id.comp_entry.Busy = 1;
 		id_priv->id.ep.connect->NotifyDisconnect(&id_priv->id.comp_entry.Overlap);
 	} else {
-		event->event.event = RDMA_CM_EVENT_CONNECT_ERROR;
+		event->event.event = (event->event.status == WV_CONNECTION_REFUSED) ?
+							 RDMA_CM_EVENT_REJECTED :
+							 RDMA_CM_EVENT_CONNECT_ERROR;
 		event->id_priv->state = cma_disconnected;
 	}
 }



More information about the ofw mailing list