Lines Matching refs:clc
1018 struct smc_clc_msg_accept_confirm *clc; in smc_clc_send_confirm_accept() local
1026 clc = (struct smc_clc_msg_accept_confirm *)clc_v2; in smc_clc_send_confirm_accept()
1027 clc->hdr.version = version; /* SMC version */ in smc_clc_send_confirm_accept()
1029 clc->hdr.typev2 |= SMC_FIRST_CONTACT_MASK; in smc_clc_send_confirm_accept()
1032 memcpy(clc->hdr.eyecatcher, SMCD_EYECATCHER, in smc_clc_send_confirm_accept()
1034 clc->hdr.typev1 = SMC_TYPE_D; in smc_clc_send_confirm_accept()
1035 clc->d0.gid = htonll(smcd->ops->get_local_gid(smcd)); in smc_clc_send_confirm_accept()
1036 clc->d0.token = htonll(conn->rmb_desc->token); in smc_clc_send_confirm_accept()
1037 clc->d0.dmbe_size = conn->rmbe_size_comp; in smc_clc_send_confirm_accept()
1038 clc->d0.dmbe_idx = 0; in smc_clc_send_confirm_accept()
1039 memcpy(&clc->d0.linkid, conn->lgr->id, SMC_LGR_ID_SIZE); in smc_clc_send_confirm_accept()
1041 clc->hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN); in smc_clc_send_confirm_accept()
1059 memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER, in smc_clc_send_confirm_accept()
1061 clc->hdr.typev1 = SMC_TYPE_R; in smc_clc_send_confirm_accept()
1062 clc->hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN); in smc_clc_send_confirm_accept()
1063 memcpy(clc->r0.lcl.id_for_peer, local_systemid, in smc_clc_send_confirm_accept()
1065 memcpy(&clc->r0.lcl.gid, link->gid, SMC_GID_SIZE); in smc_clc_send_confirm_accept()
1066 memcpy(&clc->r0.lcl.mac, &link->smcibdev->mac[link->ibport - 1], in smc_clc_send_confirm_accept()
1068 hton24(clc->r0.qpn, link->roce_qp->qp_num); in smc_clc_send_confirm_accept()
1069 clc->r0.rmb_rkey = in smc_clc_send_confirm_accept()
1071 clc->r0.rmbe_idx = 1; /* for now: 1 RMB = 1 RMBE */ in smc_clc_send_confirm_accept()
1072 clc->r0.rmbe_alert_token = htonl(conn->alert_token_local); in smc_clc_send_confirm_accept()
1073 switch (clc->hdr.type) { in smc_clc_send_confirm_accept()
1075 clc->r0.qp_mtu = link->path_mtu; in smc_clc_send_confirm_accept()
1078 clc->r0.qp_mtu = min(link->path_mtu, link->peer_mtu); in smc_clc_send_confirm_accept()
1081 clc->r0.rmbe_size = conn->rmbe_size_comp; in smc_clc_send_confirm_accept()
1082 clc->r0.rmb_dma_addr = conn->rmb_desc->is_vm ? in smc_clc_send_confirm_accept()
1086 hton24(clc->r0.psn, link->psn_initial); in smc_clc_send_confirm_accept()
1088 clc->hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN); in smc_clc_send_confirm_accept()
1097 if (clc->hdr.type == SMC_CLC_CONFIRM) { in smc_clc_send_confirm_accept()
1113 vec[i++].iov_len = (clc->hdr.typev1 == SMC_TYPE_D ? in smc_clc_send_confirm_accept()
1118 vec[i++].iov_len = (clc->hdr.typev1 == SMC_TYPE_D ? in smc_clc_send_confirm_accept()
1126 if (clc->hdr.type == SMC_CLC_CONFIRM) { in smc_clc_send_confirm_accept()
1138 ntohs(clc->hdr.length)); in smc_clc_send_confirm_accept()