[DAPL2] DAPL Counters & 2.0.3 extensions to support counter retrieval.
[mirror/winof/.git] / ulp / dapl2 / dapl / common / dapl_ep_free.c
index aed50c9..3ed6d7f 100644 (file)
@@ -73,7 +73,6 @@ dapl_ep_free (
 \r
     dapl_dbg_log (DAPL_DBG_TYPE_API | DAPL_DBG_TYPE_CM,\r
                   "dapl_ep_free (%p)\n", ep_handle);\r
-    DAPL_CNTR(DCNT_EP_FREE);\r
 \r
     ep_ptr = (DAPL_EP *) ep_handle;\r
     param = &ep_ptr->param;\r
@@ -86,6 +85,7 @@ dapl_ep_free (
        dat_status = DAT_ERROR (DAT_INVALID_HANDLE, DAT_INVALID_HANDLE_EP);\r
        goto bail;\r
     }\r
+    DAPL_CNTR(ep_ptr->header.owner_ia, DCNT_IA_EP_FREE);\r
 \r
     if ( ep_ptr->param.ep_state == DAT_EP_STATE_RESERVED ||\r
         ep_ptr->param.ep_state == DAT_EP_STATE_PASSIVE_CONNECTION_PENDING ||\r