[Openib-windows] [PATCH] modify CQ return size value

Yossi Leybovich sleybo at mellanox.co.il
Sun Nov 13 03:29:22 PST 2005


Fab

ib_modify_cq is not consistent with ib_create and ib_query cq
in create and query the low level driver return the requested size so it
can utilize the DB coalescing for CQ DBs and in modify it return the
actual size

this patch fix that 

pls review and apply

10x
Yossi 

Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: core/al/user/ual_cq.c
===================================================================
--- core/al/user/ual_cq.c (revision 716)
+++ core/al/user/ual_cq.c (working copy)
@@ -269,8 +269,8 @@
  else
  {
   status = cq_ioctl.out.status;
-  if( status == IB_SUCCESS )
-   *p_size = cq_ioctl.out.size;
+  //if( status == IB_SUCCESS )
+  // *p_size = cq_ioctl.out.size;
  }
 
  /* Post uvp call */
Index: hw/mt23108/user/mlnx_ual_cq.c
===================================================================
--- hw/mt23108/user/mlnx_ual_cq.c (revision 716)
+++ hw/mt23108/user/mlnx_ual_cq.c (working copy)
@@ -202,7 +202,7 @@
     }
 
     FUNC_EXIT;
-    return IB_SUCCESS;
+    return status;
 }
 
 
@@ -329,7 +329,7 @@
                   ("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 )
         {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modify_cq.patch
Type: application/octet-stream
Size: 1226 bytes
Desc: modify_cq.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20051113/01410ad3/attachment.obj>


More information about the ofw mailing list