]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
dapl: fix invalid cookie issue
authorSean Hefty <sean.hefty@intel.com>
Wed, 22 Sep 2010 17:45:09 +0000 (10:45 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 22 Sep 2010 17:45:09 +0000 (10:45 -0700)
trunk/ulp/dapl2/dapl/ibal/dapl_ibal_util.c

index 0852df2b507d068dd2637061ebef78e61c375310..37b174f66a372de94c51000f5f0ed8cc5c0639f1 100644 (file)
@@ -1805,6 +1805,7 @@ dapls_ib_completion_poll ( IN DAPL_HCA                *p_hca,
 {
     ib_api_status_t        ib_status;
     ib_work_completion_t   *cqe_filled;
+uint64_t wrid;
 
     /*
      * FIXME - Vu
@@ -1816,12 +1817,16 @@ dapls_ib_completion_poll ( IN DAPL_HCA                *p_hca,
     cqe_ptr->p_next = NULL;
     cqe_filled      = NULL;
 
+wrid = cqe_ptr->wr_id;
     if  ( !p_hca->ib_hca_handle )
     {
         return DAT_INVALID_HANDLE;
     }
 
     ib_status = ib_poll_cq (p_evd->ib_cq_handle, &cqe_ptr, &cqe_filled);
+if (ib_status == IB_SUCCESS) {
+       printf("ib_poll_cq status 0x%x, wr id 0x%llx 0x%llx\n", cqe_ptr->status, wrid, cqe_ptr->wr_id);
+}
 
     if ( ib_status == IB_INVALID_CQ_HANDLE )
     {