[openib-general] [PATCH] uDAPL dapl_evd_connection_callback does not support TIMED_OUT event

James Lentini jlentini at netapp.com
Thu Jun 22 14:13:35 PDT 2006



On Thu, 22 Jun 2006, Arlin Davis wrote:

> James,
> 
> Added support for active side TIMED_OUT event from a provider. 

Committed revision 8181, but with the different flag values retained:

Index: dapl/common/dapl_evd_connection_callb.c
===================================================================
--- dapl/common/dapl_evd_connection_callb.c	(revision 8109)
+++ dapl/common/dapl_evd_connection_callb.c	(working copy)
@@ -162,34 +162,8 @@ dapl_evd_connection_callback (
 	    break;
 	}
 	case DAT_CONNECTION_EVENT_DISCONNECTED:
-	{
-	    /*
-	     * EP is now fully disconnected; initiate any post processing
-	     * to reset the underlying QP and get the EP ready for
-	     * another connection
-	     */
-	    ep_ptr->param.ep_state  = DAT_EP_STATE_DISCONNECTED;
-	    dapls_ib_disconnect_clean (ep_ptr, DAT_TRUE, ib_cm_event);
-	    dapl_os_unlock (&ep_ptr->header.lock);
-
-	    break;
-	}
 	case DAT_CONNECTION_EVENT_PEER_REJECTED:
-	{
-	    ep_ptr->param.ep_state  = DAT_EP_STATE_DISCONNECTED;
-	    dapls_ib_disconnect_clean (ep_ptr, DAT_TRUE, ib_cm_event);
-	    dapl_os_unlock (&ep_ptr->header.lock);
-
-	    break;
-	}
 	case DAT_CONNECTION_EVENT_UNREACHABLE:
-	{
-	    ep_ptr->param.ep_state  = DAT_EP_STATE_DISCONNECTED;
-	    dapls_ib_disconnect_clean (ep_ptr, DAT_TRUE, ib_cm_event);
-	    dapl_os_unlock (&ep_ptr->header.lock);
-
-	    break;
-	}
 	case DAT_CONNECTION_EVENT_NON_PEER_REJECTED:
 	{
 	    ep_ptr->param.ep_state  = DAT_EP_STATE_DISCONNECTED;
@@ -199,6 +173,7 @@ dapl_evd_connection_callback (
 	    break;
 	}
 	case DAT_CONNECTION_EVENT_BROKEN:
+	case DAT_CONNECTION_EVENT_TIMED_OUT:
 	{
 	    ep_ptr->param.ep_state  = DAT_EP_STATE_DISCONNECTED;
 	    dapls_ib_disconnect_clean (ep_ptr, DAT_FALSE, ib_cm_event);




More information about the general mailing list