[IBAL, HCA] Fix user-mode modify_cq to allow use of CQ DB coalescing.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 29 Nov 2005 21:52:51 +0000 (21:52 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 29 Nov 2005 21:52:51 +0000 (21:52 +0000)
Signed-off-by: Yossi Leybovich (sleybo@mellanox.co.il)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@190 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/user/ual_cq.c
hw/mt23108/user/mlnx_ual_cq.c

index 968453e..cd7939b 100644 (file)
@@ -269,8 +269,6 @@ ual_modify_cq(
        else\r
        {\r
                status = cq_ioctl.out.status;\r
-               if( status == IB_SUCCESS )\r
-                       *p_size = cq_ioctl.out.size;\r
        }\r
 \r
        /* Post uvp call */\r
index b9c11ab..083bec9 100644 (file)
@@ -202,7 +202,7 @@ mlnx_pre_create_cq (
     }\r
 \r
     FUNC_EXIT;\r
-    return IB_SUCCESS;\r
+    return status;\r
 }\r
 \r
 \r
@@ -329,7 +329,7 @@ mlnx_pre_resize_cq (
                   ("Before resize_cq_prep *p_size = %d\n", *p_size));\r
         status = THHUL_cqm_resize_cq_prep ( p_hobul->hhul_hca_hndl,\r
                                                 p_cq_info->hhul_cq_hndl,\r
-                                                *p_size, p_size,\r
+                                                *p_size, &p_cq_info->cq_size,\r
                                                 p_cq_ul_resources);\r
                if( status != IB_SUCCESS )\r
         {\r