From: ftillier Date: Tue, 29 Nov 2005 21:52:51 +0000 (+0000) Subject: [IBAL, HCA] Fix user-mode modify_cq to allow use of CQ DB coalescing. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cf5670f5d3ead6f0cd13916cd8260f6eb32a8748;p=~shefty%2Frdma-win.git [IBAL, HCA] Fix user-mode modify_cq to allow use of CQ DB coalescing. Signed-off-by: Yossi Leybovich (sleybo@mellanox.co.il) git-svn-id: svn://openib.tc.cornell.edu/gen1@190 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/core/al/user/ual_cq.c b/trunk/core/al/user/ual_cq.c index 968453e6..cd7939b4 100644 --- a/trunk/core/al/user/ual_cq.c +++ b/trunk/core/al/user/ual_cq.c @@ -269,8 +269,6 @@ ual_modify_cq( else { status = cq_ioctl.out.status; - if( status == IB_SUCCESS ) - *p_size = cq_ioctl.out.size; } /* Post uvp call */ diff --git a/trunk/hw/mt23108/user/mlnx_ual_cq.c b/trunk/hw/mt23108/user/mlnx_ual_cq.c index b9c11ab2..083bec97 100644 --- a/trunk/hw/mt23108/user/mlnx_ual_cq.c +++ b/trunk/hw/mt23108/user/mlnx_ual_cq.c @@ -202,7 +202,7 @@ mlnx_pre_create_cq ( } FUNC_EXIT; - return IB_SUCCESS; + return status; } @@ -329,7 +329,7 @@ mlnx_pre_resize_cq ( ("Before resize_cq_prep *p_size = %d\n", *p_size)); status = THHUL_cqm_resize_cq_prep ( p_hobul->hhul_hca_hndl, p_cq_info->hhul_cq_hndl, - *p_size, p_size, + *p_size, &p_cq_info->cq_size, p_cq_ul_resources); if( status != IB_SUCCESS ) {