[DAPL2] DAPL Counters & 2.0.3 extensions to support counter retrieval.
[mirror/winof/.git] / ulp / dapl2 / dapl / common / dapl_ep_create.c
index ccb506d..59d2f8b 100644 (file)
@@ -89,7 +89,6 @@ dapl_ep_create (
                  connect_evd_handle, \r
                  ep_attr, \r
                  ep_handle);\r
-    DAPL_CNTR(DCNT_EP_CREATE);\r
 \r
     ia_ptr = (DAPL_IA *)ia_handle;\r
     dat_status = DAT_SUCCESS;\r
@@ -102,6 +101,7 @@ dapl_ep_create (
        dat_status = DAT_ERROR (DAT_INVALID_HANDLE, DAT_INVALID_HANDLE_IA);\r
        goto bail;\r
     }\r
+    DAPL_CNTR(ia_ptr, DCNT_IA_EP_CREATE);\r
 \r
     /*\r
      * Verify non-required parameters.\r