{
/* client, release local conn id port */
if (!cm->l_ep && cm->msg.sport)
- mcm_free_port(cm->smd->ports, ntohs(cm->msg.sport));
+ mcm_free_port(cm->md->ports, ntohs(cm->msg.sport));
pthread_mutex_destroy(&cm->lock);
cm->smd->ref_count--;
/* ACTIVE: init source address QP info from MPXYD and MIC client */
if (m_qp) {
- cm->msg.sport = htons(mcm_get_port(smd->ports, 0, (uint64_t)smd));
+ cm->msg.sport = htons(mcm_get_port(smd->md->ports, 0, (uint64_t)smd));
if (!cm->msg.sport) {
pthread_mutex_destroy(&cm->lock);
goto bail;
while (cm) {
if (cm->sid == (uint16_t)pmsg->req_id) {
remove_entry(&cm->entry);
- mcm_free_port(smd->ports, (uint16_t)pmsg->req_id);
+ mcm_free_port(smd->md->ports, (uint16_t)pmsg->req_id);
m_cm_free(cm);
break;
}
pmsg->sid, pmsg->backlog, smd->md->qp->qp_num, ntohs(smd->md->lid));
/* create listen EP for provided SID */
- lport = mcm_get_port(smd->ports, pmsg->sid, (uint64_t)smd);
+ lport = mcm_get_port(smd->md->ports, pmsg->sid, (uint64_t)smd);
if (lport == pmsg->sid) {
cm = m_cm_create(smd, NULL);
if (cm == NULL) {
pmsg->hdr.status = MIX_ENOMEM;
- mcm_free_port(smd->ports, lport);
+ mcm_free_port(smd->md->ports, lport);
} else {
cm->state = MCM_LISTEN;
cm->sid = lport;