Lines Matching refs:cm_info
75 struct irdma_cm_info *cm_info) in irdma_get_addr_info() argument
77 memset(cm_info, 0, sizeof(*cm_info)); in irdma_get_addr_info()
78 cm_info->ipv4 = cm_node->ipv4; in irdma_get_addr_info()
79 cm_info->vlan_id = cm_node->vlan_id; in irdma_get_addr_info()
80 memcpy(cm_info->loc_addr, cm_node->loc_addr, sizeof(cm_info->loc_addr)); in irdma_get_addr_info()
81 memcpy(cm_info->rem_addr, cm_node->rem_addr, sizeof(cm_info->rem_addr)); in irdma_get_addr_info()
82 cm_info->loc_port = cm_node->loc_port; in irdma_get_addr_info()
83 cm_info->rem_port = cm_node->rem_port; in irdma_get_addr_info()
244 memcpy(event->cm_info.rem_addr, cm_node->rem_addr, in irdma_create_event()
245 sizeof(event->cm_info.rem_addr)); in irdma_create_event()
246 memcpy(event->cm_info.loc_addr, cm_node->loc_addr, in irdma_create_event()
247 sizeof(event->cm_info.loc_addr)); in irdma_create_event()
248 event->cm_info.rem_port = cm_node->rem_port; in irdma_create_event()
249 event->cm_info.loc_port = cm_node->loc_port; in irdma_create_event()
250 event->cm_info.cm_id = cm_node->cm_id; in irdma_create_event()
253 event, type, event->cm_info.loc_addr, in irdma_create_event()
254 event->cm_info.rem_addr); in irdma_create_event()
1508 struct irdma_cm_info *cm_info, in irdma_del_multiple_qhash() argument
1535 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_del_multiple_qhash()
1536 sizeof(cm_info->loc_addr)); in irdma_del_multiple_qhash()
1537 cm_info->vlan_id = child_listen_node->vlan_id; in irdma_del_multiple_qhash()
1539 ret = irdma_manage_qhash(iwdev, cm_info, in irdma_del_multiple_qhash()
1656 struct irdma_cm_info *cm_info, in irdma_add_mqh_6() argument
1694 cm_info->vlan_id = rdma_vlan_dev_vlan_id(ip_dev); in irdma_add_mqh_6()
1695 cm_parent_listen_node->vlan_id = cm_info->vlan_id; in irdma_add_mqh_6()
1700 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_add_mqh_6()
1701 sizeof(cm_info->loc_addr)); in irdma_add_mqh_6()
1703 cm_info->user_pri = in irdma_add_mqh_6()
1705 cm_info->user_pri, in irdma_add_mqh_6()
1708 ret = irdma_manage_qhash(iwdev, cm_info, in irdma_add_mqh_6()
1744 struct irdma_cm_info *cm_info, in irdma_add_mqh_4() argument
1784 cm_info->vlan_id = rdma_vlan_dev_vlan_id(ip_dev); in irdma_add_mqh_4()
1785 cm_parent_listen_node->vlan_id = cm_info->vlan_id; in irdma_add_mqh_4()
1790 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_add_mqh_4()
1791 sizeof(cm_info->loc_addr)); in irdma_add_mqh_4()
1793 cm_info->user_pri = in irdma_add_mqh_4()
1795 cm_info->user_pri, in irdma_add_mqh_4()
1797 ret = irdma_manage_qhash(iwdev, cm_info, in irdma_add_mqh_4()
1833 struct irdma_cm_info *cm_info, in irdma_add_mqh() argument
1836 if (cm_info->ipv4) in irdma_add_mqh()
1837 return irdma_add_mqh_4(iwdev, cm_info, cm_listen_node); in irdma_add_mqh()
1839 return irdma_add_mqh_6(iwdev, cm_info, cm_listen_node); in irdma_add_mqh()
2235 struct irdma_cm_info *cm_info, in irdma_make_cm_node() argument
2249 cm_node->ipv4 = cm_info->ipv4; in irdma_make_cm_node()
2250 cm_node->vlan_id = cm_info->vlan_id; in irdma_make_cm_node()
2253 cm_node->tos = cm_info->tos; in irdma_make_cm_node()
2254 cm_node->user_pri = cm_info->user_pri; in irdma_make_cm_node()
2256 if (listener->tos != cm_info->tos) in irdma_make_cm_node()
2259 listener->tos, cm_info->tos); in irdma_make_cm_node()
2263 cm_node->tos = max(listener->tos, cm_info->tos); in irdma_make_cm_node()
2266 irdma_iw_get_vlan_prio(cm_info->loc_addr, in irdma_make_cm_node()
2268 cm_info->ipv4); in irdma_make_cm_node()
2276 memcpy(cm_node->loc_addr, cm_info->loc_addr, sizeof(cm_node->loc_addr)); in irdma_make_cm_node()
2277 memcpy(cm_node->rem_addr, cm_info->rem_addr, sizeof(cm_node->rem_addr)); in irdma_make_cm_node()
2278 cm_node->loc_port = cm_info->loc_port; in irdma_make_cm_node()
2279 cm_node->rem_port = cm_info->rem_port; in irdma_make_cm_node()
2290 cm_node->cm_id = cm_info->cm_id; in irdma_make_cm_node()
2337 cm_info->loc_addr[0], in irdma_make_cm_node()
2338 cm_info->rem_addr[0], in irdma_make_cm_node()
2342 cm_info->loc_addr, in irdma_make_cm_node()
2343 cm_info->rem_addr, in irdma_make_cm_node()
2948 struct irdma_cm_info *cm_info) in irdma_make_listen_node() argument
2955 irdma_find_listener(cm_core, cm_info->loc_addr, cm_info->ipv4, in irdma_make_listen_node()
2956 cm_info->loc_port, cm_info->vlan_id, in irdma_make_listen_node()
2972 memcpy(listener->loc_addr, cm_info->loc_addr, in irdma_make_listen_node()
2974 listener->loc_port = cm_info->loc_port; in irdma_make_listen_node()
2983 listener->cm_id = cm_info->cm_id; in irdma_make_listen_node()
2984 listener->ipv4 = cm_info->ipv4; in irdma_make_listen_node()
2985 listener->vlan_id = cm_info->vlan_id; in irdma_make_listen_node()
2990 listener->backlog = cm_info->backlog; in irdma_make_listen_node()
3013 struct irdma_cm_info *cm_info, in irdma_create_cm_node() argument
3021 cm_node = irdma_make_cm_node(cm_core, iwdev, cm_info, NULL); in irdma_create_cm_node()
3143 struct irdma_cm_info cm_info = {}; in irdma_receive_ilq() local
3156 cm_info.user_pri = (vtag & VLAN_PRIO_MASK) >> in irdma_receive_ilq()
3158 cm_info.vlan_id = vtag & VLAN_VID_MASK; in irdma_receive_ilq()
3160 cm_info.vlan_id = 0xFFFF; in irdma_receive_ilq()
3167 cm_info.user_pri = (vtag & VLAN_PRIO_MASK) >> in irdma_receive_ilq()
3169 cm_info.vlan_id = vtag & VLAN_VID_MASK; in irdma_receive_ilq()
3171 "CM: vlan_id=%d\n", cm_info.vlan_id); in irdma_receive_ilq()
3173 cm_info.vlan_id = 0xFFFF; in irdma_receive_ilq()
3179 cm_info.loc_addr[0] = ntohl(iph->daddr); in irdma_receive_ilq()
3180 cm_info.rem_addr[0] = ntohl(iph->saddr); in irdma_receive_ilq()
3181 cm_info.ipv4 = true; in irdma_receive_ilq()
3182 cm_info.tos = iph->tos; in irdma_receive_ilq()
3185 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_receive_ilq()
3187 irdma_copy_ip_ntohl(cm_info.rem_addr, in irdma_receive_ilq()
3189 cm_info.ipv4 = false; in irdma_receive_ilq()
3190 cm_info.tos = (ip6h->priority << 4) | (ip6h->flow_lbl[0] >> 4); in irdma_receive_ilq()
3192 cm_info.loc_port = ntohs(tcph->dest); in irdma_receive_ilq()
3193 cm_info.rem_port = ntohs(tcph->source); in irdma_receive_ilq()
3194 cm_node = irdma_find_node(cm_core, cm_info.rem_port, cm_info.rem_addr, in irdma_receive_ilq()
3195 cm_info.loc_port, cm_info.loc_addr, cm_info.vlan_id); in irdma_receive_ilq()
3205 cm_info.loc_addr, in irdma_receive_ilq()
3206 cm_info.ipv4, in irdma_receive_ilq()
3207 cm_info.loc_port, in irdma_receive_ilq()
3208 cm_info.vlan_id, in irdma_receive_ilq()
3211 cm_info.cm_id = NULL; in irdma_receive_ilq()
3217 cm_info.cm_id = listener->cm_id; in irdma_receive_ilq()
3218 cm_node = irdma_make_cm_node(cm_core, iwdev, &cm_info, in irdma_receive_ilq()
3822 struct irdma_cm_info cm_info; in irdma_connect() local
3856 cm_info.ipv4 = true; in irdma_connect()
3857 memset(cm_info.loc_addr, 0, sizeof(cm_info.loc_addr)); in irdma_connect()
3858 memset(cm_info.rem_addr, 0, sizeof(cm_info.rem_addr)); in irdma_connect()
3859 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in irdma_connect()
3860 cm_info.rem_addr[0] = ntohl(raddr->sin_addr.s_addr); in irdma_connect()
3861 cm_info.loc_port = ntohs(laddr->sin_port); in irdma_connect()
3862 cm_info.rem_port = ntohs(raddr->sin_port); in irdma_connect()
3863 cm_info.vlan_id = irdma_get_vlan_ipv4(cm_info.loc_addr); in irdma_connect()
3868 cm_info.ipv4 = false; in irdma_connect()
3869 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_connect()
3871 irdma_copy_ip_ntohl(cm_info.rem_addr, in irdma_connect()
3873 cm_info.loc_port = ntohs(laddr6->sin6_port); in irdma_connect()
3874 cm_info.rem_port = ntohs(raddr6->sin6_port); in irdma_connect()
3875 irdma_get_vlan_mac_ipv6(cm_info.loc_addr, &cm_info.vlan_id, in irdma_connect()
3878 cm_info.cm_id = cm_id; in irdma_connect()
3879 cm_info.qh_qpid = iwdev->vsi.ilq->qp_id; in irdma_connect()
3880 cm_info.tos = cm_id->tos; in irdma_connect()
3882 cm_info.user_pri = in irdma_connect()
3883 iwqp->sc_qp.vsi->dscp_map[irdma_tos2dscp(cm_info.tos)]; in irdma_connect()
3885 cm_info.user_pri = rt_tos2priority(cm_id->tos); in irdma_connect()
3886 cm_info.user_pri = irdma_iw_get_vlan_prio(cm_info.loc_addr, in irdma_connect()
3887 cm_info.user_pri, in irdma_connect()
3888 cm_info.ipv4); in irdma_connect()
3891 if (iwqp->sc_qp.dev->ws_add(iwqp->sc_qp.vsi, cm_info.user_pri)) in irdma_connect()
3893 iwqp->sc_qp.user_pri = cm_info.user_pri; in irdma_connect()
3896 cm_info.user_pri); in irdma_connect()
3898 trace_irdma_dcb_tos(iwdev, cm_id->tos, cm_info.user_pri); in irdma_connect()
3900 ret = irdma_create_cm_node(&iwdev->cm_core, iwdev, conn_param, &cm_info, in irdma_connect()
3907 if (irdma_manage_qhash(iwdev, &cm_info, in irdma_connect()
3915 cm_node->apbvt_entry = irdma_add_apbvt(iwdev, cm_info.loc_port); in irdma_connect()
3945 if (cm_info.ipv4) in irdma_connect()
3948 cm_info.rem_addr); in irdma_connect()
3952 cm_info.rem_addr); in irdma_connect()
3968 struct irdma_cm_info cm_info = {}; in irdma_create_listen() local
3980 cm_info.qh_qpid = iwdev->vsi.ilq->qp_id; in irdma_create_listen()
3986 cm_info.ipv4 = true; in irdma_create_listen()
3987 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in irdma_create_listen()
3988 cm_info.loc_port = ntohs(laddr->sin_port); in irdma_create_listen()
3991 cm_info.vlan_id = irdma_get_vlan_ipv4(cm_info.loc_addr); in irdma_create_listen()
3993 cm_info.vlan_id = 0xFFFF; in irdma_create_listen()
4000 cm_info.ipv4 = false; in irdma_create_listen()
4001 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_create_listen()
4003 cm_info.loc_port = ntohs(laddr6->sin6_port); in irdma_create_listen()
4005 irdma_get_vlan_mac_ipv6(cm_info.loc_addr, in irdma_create_listen()
4006 &cm_info.vlan_id, NULL); in irdma_create_listen()
4008 cm_info.vlan_id = 0xFFFF; in irdma_create_listen()
4013 if (cm_info.vlan_id >= VLAN_N_VID && iwdev->dcb_vlan_mode) in irdma_create_listen()
4014 cm_info.vlan_id = 0; in irdma_create_listen()
4015 cm_info.backlog = backlog; in irdma_create_listen()
4016 cm_info.cm_id = cm_id; in irdma_create_listen()
4018 trace_irdma_create_listen(iwdev, &cm_info); in irdma_create_listen()
4021 &cm_info); in irdma_create_listen()
4036 cm_info.user_pri = cm_listen_node->user_pri; in irdma_create_listen()
4039 err = irdma_add_mqh(iwdev, &cm_info, cm_listen_node); in irdma_create_listen()
4045 irdma_iw_get_vlan_prio(cm_info.loc_addr, in irdma_create_listen()
4046 cm_info.user_pri, in irdma_create_listen()
4047 cm_info.ipv4); in irdma_create_listen()
4048 cm_info.user_pri = cm_listen_node->user_pri; in irdma_create_listen()
4049 err = irdma_manage_qhash(iwdev, &cm_info, in irdma_create_listen()
4060 cm_info.loc_port); in irdma_create_listen()