break;
} else {
/* duplicate; bail and throw away */
- dapl_os_unlock(lock);
dapl_log(DAPL_DBG_TYPE_CM_WARN,
" DUPLICATE: cm %p op %s (%s) st %s"
" [lid, port, cqp, iqp]:"
ntohs(cm->msg.saddr.lid), ntohs(cm->msg.sport),
ntohl(cm->msg.sqpn), ntohl(cm->msg.saddr.qpn));
- DAPL_CNTR(((DAPL_IA *)dapl_llist_peek_head(&cm->hca->ia_list_head)), DCNT_IA_CM_ERR_REQ_DUP);
+ DAPL_CNTR(((DAPL_IA *)dapl_llist_peek_head(&cm->hca->ia_list_head)),
+ DCNT_IA_CM_ERR_REQ_DUP);
- return NULL;
+ dapl_os_unlock(lock);
+ return NULL;
}
}
}
dapl_os_unlock(lock);
-
/* no duplicate request on connq, check listenq for new request */
if (ntohs(msg->op) == MCM_REQ && !listenq && !found) {
listenq = 1;
ntohl(msg->d_id));
if (ntohs(msg->op) == MCM_DREP) {
- DAPL_CNTR(((DAPL_IA *)dapl_llist_peek_head(&cm->hca->ia_list_head)), DCNT_IA_CM_ERR_DREP_DUP);
+ DAPL_CNTR(((DAPL_IA *)dapl_llist_peek_head(&tp->hca->ia_list_head)), DCNT_IA_CM_ERR_DREP_DUP);
}
}