#include "openib_osd.h"
#include "dapl_ib_common.h"
+#define MCM_RETRY_CNT 10
+#define MCM_REP_TIME 4000 /* reply timeout in m_secs */
+#define MCM_RTU_TIME 2000 /* rtu timeout in m_secs */
+
/* DAPL CM objects MUST include list_entry, ref_count, event for EP linking */
struct ib_cm_handle
{
dapl_dbg_log(DAPL_DBG_TYPE_UTIL, " mcm_create: \n");
/* setup CM timers and queue sizes */
- tp->retries = dapl_os_get_env_val("DAPL_UCM_RETRY", DCM_RETRY_CNT);
- tp->rep_time = dapl_os_get_env_val("DAPL_UCM_REP_TIME", DCM_REP_TIME);
- tp->rtu_time = dapl_os_get_env_val("DAPL_UCM_RTU_TIME", DCM_RTU_TIME);
+ tp->retries = dapl_os_get_env_val("DAPL_UCM_RETRY", MCM_RETRY_CNT);
+ tp->rep_time = dapl_os_get_env_val("DAPL_UCM_REP_TIME", MCM_REP_TIME);
+ tp->rtu_time = dapl_os_get_env_val("DAPL_UCM_RTU_TIME", MCM_RTU_TIME);
tp->cm_timer = DAPL_MIN(tp->rep_time,tp->rtu_time);
tp->qpe = dapl_os_get_env_val("DAPL_UCM_QP_SIZE", DCM_QP_SIZE);
tp->cqe = dapl_os_get_env_val("DAPL_UCM_CQ_SIZE", DCM_CQ_SIZE);