[kdapltest]: this patch adds the option of using memory registration
types other then the default PHY on the server side.

Signed-off-by: Guy German <[EMAIL PROTECTED]>

Index: dapltest/test/dapl_server.c
===================================================================
--- dapltest/test/dapl_server.c (revision 2899)
+++ dapltest/test/dapl_server.c (working copy)
@@ -232,7 +232,14 @@ DT_cs_Server (Params_t * params_ptr)
      * Create two buffers, large enough to hold ClientInfo and the largest
      * command we'll use.
      */
-    ps_ptr->bpool = DT_BpoolAlloc (NULL,
+ + if (!(pt_ptr = DT_Alloc_Per_Test_Data (phead)))
+           goto server_exit;
+    DT_MemListInit (pt_ptr);
+    memcpy ( (void *) (uintptr_t) &pt_ptr->Params,
+           (const void *) params_ptr,
+           sizeof (Params_t));
+    ps_ptr->bpool = DT_BpoolAlloc (pt_ptr,
                               phead,
                               ps_ptr->ia,
                               ps_ptr->pz,
@@ -243,6 +250,7 @@ DT_cs_Server (Params_t * params_ptr)
                               256, /* FIXME query for this value */
                               FALSE,
                               FALSE);
+    DT_Free_Per_Test_Data (pt_ptr);
     if (ps_ptr->bpool == 0)
     {
        DT_Tdep_PT_Printf (phead,
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to