[ofw] DAPL2 patch - lost cookie fix

Smith, Stan stan.smith at intel.com
Wed Feb 6 16:18:45 PST 2008


Signed off by stan.smith at intel.com

Index: dapl_evd_util.c
===================================================================
--- dapl_evd_util.c	(revision 926)
+++ dapl_evd_util.c	(working copy)
@@ -1083,7 +1083,10 @@
 		DAPL_GET_CQE_OPTYPE(cqe_ptr) !=  OP_RECEIVE))
 	    {
 		dapls_cqe_to_event_extension (ep_ptr, cookie, cqe_ptr,
event_ptr);
-		dapls_cookie_dealloc (&ep_ptr->req_buffer, cookie);
+		if (cookie->val.dto.type == DAPL_DTO_TYPE_RECV)
+			dapls_cookie_dealloc (&ep_ptr->recv_buffer,
cookie);
+		else
+			dapls_cookie_dealloc (&ep_ptr->req_buffer,
cookie);
 		break;
 	    }
 #endif



More information about the ofw mailing list