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

2006-06-22 Thread James Lentini


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);

___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general



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

2006-06-22 Thread Arlin Davis
James,

Added support for active side TIMED_OUT event from a provider. 

Signed-off by: Arlin Davis [EMAIL PROTECTED]

Index: dapl/common/dapl_evd_connection_callb.c
===
--- dapl/common/dapl_evd_connection_callb.c (revision 8166)
+++ dapl/common/dapl_evd_connection_callb.c (working copy)
@@ -162,48 +162,15 @@ 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;
-   dapls_ib_disconnect_clean (ep_ptr, DAT_TRUE, ib_cm_event);
-   dapl_os_unlock (&ep_ptr->header.lock);
-
-   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);
dapl_os_unlock ( &ep_ptr->header.lock );
-
break;
}
case DAT_CONNECTION_REQUEST_EVENT:


___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general