Lines Matching refs:cm_info
680 tcp->vlan_id = cpu_to_le16(ep->cm_info.vlan); in qed_iwarp_tcp_offload()
691 tcp->ip_version = ep->cm_info.ip_version; in qed_iwarp_tcp_offload()
694 tcp->remote_ip[i] = cpu_to_le32(ep->cm_info.remote_ip[i]); in qed_iwarp_tcp_offload()
695 tcp->local_ip[i] = cpu_to_le32(ep->cm_info.local_ip[i]); in qed_iwarp_tcp_offload()
698 tcp->remote_port = cpu_to_le16(ep->cm_info.remote_port); in qed_iwarp_tcp_offload()
699 tcp->local_port = cpu_to_le16(ep->cm_info.local_port); in qed_iwarp_tcp_offload()
762 ep->cm_info.ord = (u8)min_t(u16, in qed_iwarp_mpa_received()
766 ep->cm_info.ird = (u8)min_t(u16, in qed_iwarp_mpa_received()
791 ep->cm_info.ord = QED_IWARP_ORD_DEFAULT; in qed_iwarp_mpa_received()
792 ep->cm_info.ird = QED_IWARP_IRD_DEFAULT; in qed_iwarp_mpa_received()
798 mpa_rev, ep->cm_info.ord, ep->cm_info.ird, ep->rtr_type, in qed_iwarp_mpa_received()
802 ep->cm_info.private_data = ep->ep_buffer_virt->in_pdata + mpa_hdr_size; in qed_iwarp_mpa_received()
805 ep->cm_info.private_data_len = ulp_data_len - mpa_hdr_size; in qed_iwarp_mpa_received()
808 params.cm_info = &ep->cm_info; in qed_iwarp_mpa_received()
860 val = ep->cm_info.private_data_len; in qed_iwarp_mpa_offload()
864 common->out_rq.ord = cpu_to_le32(ep->cm_info.ord); in qed_iwarp_mpa_offload()
865 common->out_rq.ird = cpu_to_le32(ep->cm_info.ird); in qed_iwarp_mpa_offload()
910 ep->cm_info.ird, in qed_iwarp_mpa_offload()
911 ep->cm_info.ord, ep->rtr_type, ep->mpa_rev, reject); in qed_iwarp_mpa_offload()
922 memset(&ep->cm_info, 0, sizeof(ep->cm_info)); in qed_iwarp_return_ep()
954 ep->cm_info.ird = (u8)(mpa_ord & MPA_V2_IRD_ORD_MASK); in qed_iwarp_parse_private_data()
955 ep->cm_info.ord = (u8)(mpa_ird & MPA_V2_IRD_ORD_MASK); in qed_iwarp_parse_private_data()
959 ep->cm_info.private_data = ep->ep_buffer_virt->in_pdata + mpa_data_size; in qed_iwarp_parse_private_data()
962 ep->cm_info.private_data_len = ulp_data_len - mpa_data_size; in qed_iwarp_parse_private_data()
982 ep->mpa_rev, ep->cm_info.ord, ep->cm_info.ird); in qed_iwarp_mpa_reply_arrived()
984 params.cm_info = &ep->cm_info; in qed_iwarp_mpa_reply_arrived()
1015 ep->mpa_rev, ep->cm_info.ord, ep->cm_info.ird); in qed_iwarp_mpa_complete()
1017 params.cm_info = &ep->cm_info; in qed_iwarp_mpa_complete()
1023 ep->qp->max_rd_atomic_req = ep->cm_info.ord; in qed_iwarp_mpa_complete()
1024 ep->qp->max_rd_atomic_resp = ep->cm_info.ird; in qed_iwarp_mpa_complete()
1117 mpa_ird = (u16)ep->cm_info.ird; in qed_iwarp_mpa_v2_set_private()
1118 mpa_ord = (u16)ep->cm_info.ord; in qed_iwarp_mpa_v2_set_private()
1162 if ((iparams->cm_info.ord > QED_IWARP_ORD_DEFAULT) || in qed_iwarp_connect()
1163 (iparams->cm_info.ird > QED_IWARP_IRD_DEFAULT)) { in qed_iwarp_connect()
1166 iparams->qp->icid, iparams->cm_info.ord, in qed_iwarp_connect()
1167 iparams->cm_info.ird); in qed_iwarp_connect()
1193 memcpy(&ep->cm_info, &iparams->cm_info, sizeof(ep->cm_info)); in qed_iwarp_connect()
1195 ep->cm_info.ord = iparams->cm_info.ord; in qed_iwarp_connect()
1196 ep->cm_info.ird = iparams->cm_info.ird; in qed_iwarp_connect()
1202 if ((ep->rtr_type & MPA_RTR_TYPE_ZERO_READ) && (ep->cm_info.ord == 0)) in qed_iwarp_connect()
1203 ep->cm_info.ord = 1; in qed_iwarp_connect()
1209 ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; in qed_iwarp_connect()
1210 ep->cm_info.private_data_len = iparams->cm_info.private_data_len + in qed_iwarp_connect()
1214 iparams->cm_info.private_data, in qed_iwarp_connect()
1215 iparams->cm_info.private_data_len); in qed_iwarp_connect()
1492 if (iparams->ord > ep->cm_info.ird) in qed_iwarp_accept()
1493 iparams->ord = ep->cm_info.ird; in qed_iwarp_accept()
1501 ep->cm_info.ord = iparams->ord; in qed_iwarp_accept()
1502 ep->cm_info.ird = iparams->ird; in qed_iwarp_accept()
1506 ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; in qed_iwarp_accept()
1507 ep->cm_info.private_data_len = iparams->private_data_len + in qed_iwarp_accept()
1540 ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; in qed_iwarp_reject()
1541 ep->cm_info.private_data_len = iparams->private_data_len + in qed_iwarp_reject()
1552 struct qed_iwarp_cm_info *cm_info) in qed_iwarp_print_cm_info() argument
1555 cm_info->ip_version); in qed_iwarp_print_cm_info()
1557 if (cm_info->ip_version == QED_TCP_IPV4) in qed_iwarp_print_cm_info()
1560 cm_info->remote_ip, cm_info->remote_port, in qed_iwarp_print_cm_info()
1561 cm_info->local_ip, cm_info->local_port, in qed_iwarp_print_cm_info()
1562 cm_info->vlan); in qed_iwarp_print_cm_info()
1566 cm_info->remote_ip, cm_info->remote_port, in qed_iwarp_print_cm_info()
1567 cm_info->local_ip, cm_info->local_port, in qed_iwarp_print_cm_info()
1568 cm_info->vlan); in qed_iwarp_print_cm_info()
1572 cm_info->private_data_len, cm_info->ord, cm_info->ird); in qed_iwarp_print_cm_info()
1596 qed_iwarp_ep_exists(struct qed_hwfn *p_hwfn, struct qed_iwarp_cm_info *cm_info) in qed_iwarp_ep_exists() argument
1604 if ((ep->cm_info.local_port == cm_info->local_port) && in qed_iwarp_ep_exists()
1605 (ep->cm_info.remote_port == cm_info->remote_port) && in qed_iwarp_ep_exists()
1606 (ep->cm_info.vlan == cm_info->vlan) && in qed_iwarp_ep_exists()
1607 !memcmp(&ep->cm_info.local_ip, cm_info->local_ip, in qed_iwarp_ep_exists()
1608 sizeof(cm_info->local_ip)) && in qed_iwarp_ep_exists()
1609 !memcmp(&ep->cm_info.remote_ip, cm_info->remote_ip, in qed_iwarp_ep_exists()
1610 sizeof(cm_info->remote_ip))) { in qed_iwarp_ep_exists()
1619 qed_iwarp_print_cm_info(p_hwfn, cm_info); in qed_iwarp_ep_exists()
1629 struct qed_iwarp_cm_info *cm_info) in qed_iwarp_get_listener() argument
1635 qed_iwarp_print_cm_info(p_hwfn, cm_info); in qed_iwarp_get_listener()
1640 if (listener->port == cm_info->local_port) { in qed_iwarp_get_listener()
1648 cm_info->local_ip, in qed_iwarp_get_listener()
1649 sizeof(cm_info->local_ip)) && in qed_iwarp_get_listener()
1650 (listener->vlan == cm_info->vlan)) { in qed_iwarp_get_listener()
1669 struct qed_iwarp_cm_info *cm_info, in qed_iwarp_parse_rx_pkt() argument
1691 cm_info->vlan = ntohs(vethh->h_vlan_TCI) & VLAN_VID_MASK; in qed_iwarp_parse_rx_pkt()
1725 cm_info->local_ip[0] = ntohl(iph->daddr); in qed_iwarp_parse_rx_pkt()
1726 cm_info->remote_ip[0] = ntohl(iph->saddr); in qed_iwarp_parse_rx_pkt()
1727 cm_info->ip_version = QED_TCP_IPV4; in qed_iwarp_parse_rx_pkt()
1742 cm_info->local_ip[i] = in qed_iwarp_parse_rx_pkt()
1744 cm_info->remote_ip[i] = in qed_iwarp_parse_rx_pkt()
1747 cm_info->ip_version = QED_TCP_IPV6; in qed_iwarp_parse_rx_pkt()
1765 cm_info->local_port = ntohs(tcph->dest); in qed_iwarp_parse_rx_pkt()
1766 cm_info->remote_port = ntohs(tcph->source); in qed_iwarp_parse_rx_pkt()
1768 qed_iwarp_print_cm_info(p_hwfn, cm_info); in qed_iwarp_parse_rx_pkt()
2360 struct qed_iwarp_cm_info cm_info; in qed_iwarp_ll2_comp_syn_pkt() local
2371 memset(&cm_info, 0, sizeof(cm_info)); in qed_iwarp_ll2_comp_syn_pkt()
2388 rc = qed_iwarp_parse_rx_pkt(p_hwfn, &cm_info, (u8 *)(buf->data) + in qed_iwarp_ll2_comp_syn_pkt()
2396 listener = qed_iwarp_get_listener(p_hwfn, &cm_info); in qed_iwarp_ll2_comp_syn_pkt()
2427 if (qed_iwarp_ep_exists(p_hwfn, &cm_info)) in qed_iwarp_ll2_comp_syn_pkt()
2441 memcpy(&ep->cm_info, &cm_info, sizeof(ep->cm_info)); in qed_iwarp_ll2_comp_syn_pkt()
2443 hdr_size = ((cm_info.ip_version == QED_TCP_IPV4) ? 40 : 60); in qed_iwarp_ll2_comp_syn_pkt()
2874 params.cm_info = &ep->cm_info; in qed_iwarp_qp_in_error()
2954 params.cm_info = &ep->cm_info; in qed_iwarp_exception_received()
2968 params.cm_info = &ep->cm_info; in qed_iwarp_tcp_connect_unsuccessful()