From: ftillier Date: Sat, 21 May 2005 00:03:59 +0000 (+0000) Subject: Move ci_ca_comp_cb to kernel-only file since it's only used there. Optimize signalli... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d14fa8299797e0b5855153acb6e8cc5fb27dd0be;p=~shefty%2Frdma-win.git Move ci_ca_comp_cb to kernel-only file since it's only used there. Optimize signalling the CQ event by giving it a priority boost of IO_NETWORK_INCREMENT. git-svn-id: svn://openib.tc.cornell.edu/gen1@5 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/core/al/al_ci_ca_shared.c b/trunk/core/al/al_ci_ca_shared.c index 8e6f3f3e..27b82e53 100644 --- a/trunk/core/al/al_ci_ca_shared.c +++ b/trunk/core/al/al_ci_ca_shared.c @@ -44,10 +44,6 @@ #include "ib_common.h" -void -ci_ca_comp_cb( - IN void *cq_context ); - void ci_ca_process_event_cb( IN cl_async_proc_item_t* p_async_item ); @@ -113,21 +109,6 @@ remove_ca( -void -ci_ca_comp_cb( - IN void *cq_context ) -{ - ib_cq_handle_t h_cq = (ib_cq_handle_t)cq_context; - - if( h_cq->h_wait_obj ) - cl_waitobj_signal( h_cq->h_wait_obj ); - else - h_cq->pfn_user_comp_cb( h_cq, (void*)h_cq->obj.context ); -} - - - - ib_api_status_t get_port_info( IN al_ci_ca_t *p_ci_ca ) diff --git a/trunk/core/al/kernel/al_ci_ca.c b/trunk/core/al/kernel/al_ci_ca.c index 8ceeaef8..7d9f00de 100644 --- a/trunk/core/al/kernel/al_ci_ca.c +++ b/trunk/core/al/kernel/al_ci_ca.c @@ -309,6 +309,20 @@ cleanup_ci_ca( +void +ci_ca_comp_cb( + IN void *cq_context ) +{ + ib_cq_handle_t h_cq = (ib_cq_handle_t)cq_context; + + if( h_cq->h_wait_obj ) + KeSetEvent( h_cq->h_wait_obj, IO_NETWORK_INCREMENT, FALSE ); + else + h_cq->pfn_user_comp_cb( h_cq, (void*)h_cq->obj.context ); +} + + + /* * CI CA asynchronous event callback. */