/* queue socket for processing CM work */\r
static void dapli_cm_queue(struct ib_cm_handle *cm_ptr)\r
{\r
+ DAPL_HCA *hca_ptr = cm_ptr->hca;\r
+\r
/* add to work queue for cr thread processing */\r
dapl_llist_init_entry((DAPL_LLIST_ENTRY *) & cm_ptr->entry);\r
- dapl_os_lock(&cm_ptr->hca->ib_trans.lock);\r
- dapl_llist_add_tail(&cm_ptr->hca->ib_trans.list,\r
+ dapl_os_lock(&hca->ib_trans.lock);\r
+ dapl_llist_add_tail(&hca->ib_trans.list,\r
(DAPL_LLIST_ENTRY *) & cm_ptr->entry, cm_ptr);\r
- dapl_os_unlock(&cm_ptr->hca->ib_trans.lock);\r
+ dapl_os_unlock(&hca->ib_trans.lock);\r
\r
/* wakeup CM work thread */\r
- send(cm_ptr->hca->ib_trans.scm[1], "w", sizeof "w", 0);\r
+ send(hca->ib_trans.scm[1], "w", sizeof "w", 0);\r
}\r
\r
/*\r