From: Amir Hanania Date: Wed, 4 May 2016 00:43:25 +0000 (-0700) Subject: ib_hca_handle in MFO mode is N/A and access it caused a seg fault. X-Git-Tag: dapl-2.1.9-2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1a68be05b3de9f29cb95affe3af5455ea9c76549;p=~ardavis%2Fdapl.git ib_hca_handle in MFO mode is N/A and access it caused a seg fault. Set MFO mode as not iwarp device. Signed-off-by: Amir Hanania --- diff --git a/dapl/openib_common/util.c b/dapl/openib_common/util.c index fb612f7..fb27b81 100644 --- a/dapl/openib_common/util.c +++ b/dapl/openib_common/util.c @@ -511,19 +511,21 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HCA * hca_ptr, ia_attr->num_vendor_attr = 0; ia_attr->vendor_attr = NULL; #ifdef DAT_EXTENSIONS + ia_attr->extension_supported = DAT_EXTENSION_IB; + ia_attr->extension_version = DAT_IB_EXTENSION_VERSION; + tp->na.ib_ext = "TRUE"; + tp->na.i_data = "TRUE"; + tp->na.f_add = "TRUE"; + tp->na.c_swap = "TRUE"; +#ifdef _OPENIB_MCM_ + if (!MXF_EP(&hca_ptr->ib_trans.addr)) +#endif if (hca_ptr->ib_hca_handle->device->transport_type == IBV_TRANSPORT_IWARP) { ia_attr->extension_supported = DAT_EXTENSION_NONE; tp->na.ib_ext = "FALSE"; tp->na.i_data = "FALSE"; tp->na.f_add = "FALSE"; tp->na.c_swap = "FALSE"; - } else { - ia_attr->extension_supported = DAT_EXTENSION_IB; - ia_attr->extension_version = DAT_IB_EXTENSION_VERSION; - tp->na.ib_ext = "TRUE"; - tp->na.i_data = "TRUE"; - tp->na.f_add = "TRUE"; - tp->na.c_swap = "TRUE"; } #endif /* save key device attributes for CM exchange */