@@ -326,7 +326,7 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HCA * hca_ptr,
/* set SL, PKEY values, defaults = 0 */
hca_ptr->ib_trans.pkey_idx = 0;
- hca_ptr->ib_trans.pkey = dapl_os_get_env_val("DAPL_IB_PKEY", 0);
+ hca_ptr->ib_trans.pkey = htons(dapl_os_get_env_val("DAPL_IB_PKEY", 0));
hca_ptr->ib_trans.sl = dapl_os_get_env_val("DAPL_IB_SL", 0);
/* index provided, get pkey; pkey provided, get index */
@@ -345,10 +345,10 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HCA * hca_ptr,
}
}
if (i == dev_attr.max_pkeys) {
- dapl_log(DAPL_DBG_TYPE_WARN,
- " Warning: new pkey(%d), query (%s)"
- " err or key !found, using defaults\n",
- hca_ptr->ib_trans.pkey, strerror(errno));
+ dapl_log(DAPL_DBG_TYPE_ERR,
+ " ERR: new pkey(0x%x), query (%s)"
+ " err or key !found, using default pkey_idx=0\n",
+ ntohs(hca_ptr->ib_trans.pkey), strerror(errno));
}
}
skip_ib: