Fix for bug 149 (http://openib.org/bugzilla/show_bug.cgi?id=149).
git-svn-id: svn://openib.tc.cornell.edu/gen1@404
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
STAT_INC( thread_num );\r
\r
/* Completion queue */\r
- cq_create.size = IB_CQ_SIZE;\r
+ cq_create.size = IB_INIT_CQ_SIZE;\r
\r
cq_create.pfn_comp_cb = NULL;\r
cq_create.h_wait_obj = cq_tinfo->cq_waitobj;\r
return NULL;\r
}\r
\r
- cq_tinfo->cqe_size = IB_CQ_SIZE;\r
+ cq_tinfo->cqe_size = cq_create.size;\r
\r
if( hca->cq_tinfo )\r
{\r
* TODO: Workaround until MTHCA driver supports resize CQ, pre-allocate\r
* for 100 QPs per CQ.\r
*/\r
-#define IB_CQ_SIZE ((QP_ATTRIB_SQ_DEPTH + QP_ATTRIB_RQ_DEPTH) * 100)\r
+#define IB_CQ_SIZE (QP_ATTRIB_SQ_DEPTH + QP_ATTRIB_RQ_DEPTH)\r
+#define IB_INIT_CQ_SIZE (IB_CQ_SIZE * 100)\r
\r
/* CM timeouts */\r
#define CM_MIN_LOCAL_TIMEOUT (18)\r