[DAT/DAPL] Enable DAT Extensions
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 19 Sep 2007 20:41:18 +0000 (20:41 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 19 Sep 2007 20:41:18 +0000 (20:41 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@819 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/dapl2/dapl/ibal/dapl_ibal_dto.h
ulp/dapl2/dapl/ibal/dapl_ibal_util.c

index 4953f01..270a7f2 100644 (file)
 \r
 #include "dapl_ibal_util.h"\r
 \r
+#ifdef DAT_EXTENSIONS\r
+#include <dat/dat_ib_extensions.h>\r
+#endif\r
+\r
 //STATIC _INLINE_ int\r
 //dapls_cqe_opcode_convert (ib_work_completion_t *cqe_p);\r
 \r
index 182d6db..6a07c4a 100644 (file)
@@ -1654,6 +1654,12 @@ DAT_RETURN dapls_ib_query_hca (
         ia_attr->transport_attr           = NULL;\r
         ia_attr->num_vendor_attr          = 0;\r
         ia_attr->vendor_attr              = NULL;\r
+        ia_attr->max_iov_segments_per_rdma_read = p_hca_attr->max_sges;\r
+\r
+#ifdef DAT_EXTENSIONS\r
+        ia_attr->extension_supported = DAT_EXTENSION_IB;\r
+        ia_attr->extension_version = DAT_IB_EXTENSION_VERSION;\r
+#endif\r
        \r
        dapl_dbg_log(DAPL_DBG_TYPE_UTIL, \r
                " --> DsIMU_qHCA: (ver=%x) ep %d ep_q %d evd %d evd_q %d\n", \r
@@ -1670,6 +1676,7 @@ DAT_RETURN dapls_ib_query_hca (
 \r
     if ( ep_attr != NULL )\r
     {\r
+       (void) dapl_os_memzero(ep_attr, sizeof(*ep_attr)); \r
         /*\r
          * DAT spec does not tie max_mtu_size with IB MTU\r
          *\r