[DAPL] Fully support dat_cr_accept() private data.
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Jul 2008 23:15:27 +0000 (23:15 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Jul 2008 23:15:27 +0000 (23:15 +0000)
  dapl/common/dapl_adapter_util.h
  dapl/common/dapl_cr_accept.c
  dapl/ibal/dapl_ibal_cm.c

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1428 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/dapl/dapl/common/dapl_adapter_util.h
ulp/dapl/dapl/common/dapl_cr_accept.c
ulp/dapl/dapl/ibal/dapl_ibal_cm.c

index 21cd839..f032aae 100644 (file)
@@ -95,6 +95,7 @@ DAT_RETURN dapls_ib_remove_conn_listener (
 DAT_RETURN dapls_ib_accept_connection (\r
        IN  DAT_CR_HANDLE               cr_handle,\r
        IN  DAT_EP_HANDLE               ep_handle,\r
+       IN  DAT_COUNT                   private_data_size,\r
        IN  DAPL_PRIVATE                *prd_ptr );\r
 \r
 DAT_RETURN dapls_ib_reject_connection (\r
index 9a0d07e..cb9a0c1 100644 (file)
@@ -244,6 +244,7 @@ dapl_cr_accept (
 \r
     dat_status = dapls_ib_accept_connection ( cr_handle,\r
                                               ep_handle,\r
+                                              private_data_size,\r
                                               &prd );\r
 \r
     /*\r
index 5d267e0..cbc9047 100644 (file)
@@ -1640,6 +1640,7 @@ DAT_RETURN
 dapls_ib_accept_connection (\r
         IN        DAT_CR_HANDLE            cr_handle,\r
         IN        DAT_EP_HANDLE            ep_handle,\r
+        IN        DAT_COUNT                private_data_size,\r
         IN        DAPL_PRIVATE             *prd_ptr )\r
 {\r
     DAPL_CR                *cr_ptr;\r
@@ -1692,8 +1693,8 @@ dapls_ib_accept_connection (
 \r
     cm_rep.h_qp           = ep_ptr->qp_handle;\r
     cm_rep.qp_type        = IB_QPT_RELIABLE_CONN;\r
-    cm_rep.p_rep_pdata    = (uint8_t *) prd_ptr;\r
-    cm_rep.rep_length     = IB_MAX_REP_PDATA_SIZE;\r
+    cm_rep.p_rep_pdata    = (uint8_t *) prd_ptr->private_data;\r
+    cm_rep.rep_length     = (uint8_t) private_data_size;\r
 \r
     dapl_dbg_log ( DAPL_DBG_TYPE_CM, \r
                         "--> DsAC: CR = %p EP = %p QP = %p cm_handle = %p\n", \r