Lines Matching refs:cm_info
215 struct i40iw_cm_info *cm_info) in i40iw_get_addr_info() argument
217 cm_info->ipv4 = cm_node->ipv4; in i40iw_get_addr_info()
218 cm_info->vlan_id = cm_node->vlan_id; in i40iw_get_addr_info()
219 memcpy(cm_info->loc_addr, cm_node->loc_addr, sizeof(cm_info->loc_addr)); in i40iw_get_addr_info()
220 memcpy(cm_info->rem_addr, cm_node->rem_addr, sizeof(cm_info->rem_addr)); in i40iw_get_addr_info()
221 cm_info->loc_port = cm_node->loc_port; in i40iw_get_addr_info()
222 cm_info->rem_port = cm_node->rem_port; in i40iw_get_addr_info()
223 cm_info->user_pri = cm_node->user_pri; in i40iw_get_addr_info()
314 memcpy(event->cm_info.rem_addr, cm_node->rem_addr, sizeof(event->cm_info.rem_addr)); in i40iw_create_event()
315 memcpy(event->cm_info.loc_addr, cm_node->loc_addr, sizeof(event->cm_info.loc_addr)); in i40iw_create_event()
316 event->cm_info.rem_port = cm_node->rem_port; in i40iw_create_event()
317 event->cm_info.loc_port = cm_node->loc_port; in i40iw_create_event()
318 event->cm_info.cm_id = cm_node->cm_id; in i40iw_create_event()
326 event->cm_info.loc_addr, in i40iw_create_event()
327 event->cm_info.rem_addr); in i40iw_create_event()
1575 struct i40iw_cm_info *cm_info, in i40iw_del_multiple_qhash() argument
1600 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in i40iw_del_multiple_qhash()
1601 sizeof(cm_info->loc_addr)); in i40iw_del_multiple_qhash()
1602 cm_info->vlan_id = child_listen_node->vlan_id; in i40iw_del_multiple_qhash()
1604 ret = i40iw_manage_qhash(iwdev, cm_info, in i40iw_del_multiple_qhash()
1681 struct i40iw_cm_info *cm_info, in i40iw_add_mqh_6() argument
1718 cm_info->vlan_id = rdma_vlan_dev_vlan_id(ip_dev); in i40iw_add_mqh_6()
1719 cm_parent_listen_node->vlan_id = cm_info->vlan_id; in i40iw_add_mqh_6()
1726 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in i40iw_add_mqh_6()
1727 sizeof(cm_info->loc_addr)); in i40iw_add_mqh_6()
1729 ret = i40iw_manage_qhash(iwdev, cm_info, in i40iw_add_mqh_6()
1762 struct i40iw_cm_info *cm_info, in i40iw_add_mqh_4() argument
1798 cm_info->vlan_id = rdma_vlan_dev_vlan_id(dev); in i40iw_add_mqh_4()
1799 cm_parent_listen_node->vlan_id = cm_info->vlan_id; in i40iw_add_mqh_4()
1805 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in i40iw_add_mqh_4()
1806 sizeof(cm_info->loc_addr)); in i40iw_add_mqh_4()
1809 cm_info, in i40iw_add_mqh_4()
1893 memcpy(event.cm_info.rem_addr, in i40iw_dec_refcnt_listen()
1894 loopback->rem_addr, sizeof(event.cm_info.rem_addr)); in i40iw_dec_refcnt_listen()
1895 memcpy(event.cm_info.loc_addr, in i40iw_dec_refcnt_listen()
1896 loopback->loc_addr, sizeof(event.cm_info.loc_addr)); in i40iw_dec_refcnt_listen()
1897 event.cm_info.rem_port = loopback->rem_port; in i40iw_dec_refcnt_listen()
1898 event.cm_info.loc_port = loopback->loc_port; in i40iw_dec_refcnt_listen()
1899 event.cm_info.cm_id = loopback->cm_id; in i40iw_dec_refcnt_listen()
1900 event.cm_info.ipv4 = loopback->ipv4; in i40iw_dec_refcnt_listen()
2159 struct i40iw_cm_info *cm_info, in i40iw_make_cm_node() argument
2173 cm_node->ipv4 = cm_info->ipv4; in i40iw_make_cm_node()
2174 cm_node->vlan_id = cm_info->vlan_id; in i40iw_make_cm_node()
2177 cm_node->tos = cm_info->tos; in i40iw_make_cm_node()
2178 cm_node->user_pri = cm_info->user_pri; in i40iw_make_cm_node()
2180 if (listener->tos != cm_info->tos) in i40iw_make_cm_node()
2183 listener->tos, cm_info->tos); in i40iw_make_cm_node()
2184 cm_node->tos = max(listener->tos, cm_info->tos); in i40iw_make_cm_node()
2189 memcpy(cm_node->loc_addr, cm_info->loc_addr, sizeof(cm_node->loc_addr)); in i40iw_make_cm_node()
2190 memcpy(cm_node->rem_addr, cm_info->rem_addr, sizeof(cm_node->rem_addr)); in i40iw_make_cm_node()
2191 cm_node->loc_port = cm_info->loc_port; in i40iw_make_cm_node()
2192 cm_node->rem_port = cm_info->rem_port; in i40iw_make_cm_node()
2200 cm_node->cm_id = cm_info->cm_id; in i40iw_make_cm_node()
2253 cm_info->loc_addr[0], in i40iw_make_cm_node()
2254 cm_info->rem_addr[0], in i40iw_make_cm_node()
2258 cm_info->loc_addr, in i40iw_make_cm_node()
2259 cm_info->rem_addr, in i40iw_make_cm_node()
2857 struct i40iw_cm_info *cm_info) in i40iw_make_listen_node() argument
2863 listener = i40iw_find_listener(cm_core, cm_info->loc_addr, in i40iw_make_listen_node()
2864 cm_info->loc_port, in i40iw_make_listen_node()
2865 cm_info->vlan_id, in i40iw_make_listen_node()
2882 memcpy(listener->loc_addr, cm_info->loc_addr, sizeof(listener->loc_addr)); in i40iw_make_listen_node()
2883 listener->loc_port = cm_info->loc_port; in i40iw_make_listen_node()
2892 listener->cm_id = cm_info->cm_id; in i40iw_make_listen_node()
2893 listener->ipv4 = cm_info->ipv4; in i40iw_make_listen_node()
2894 listener->vlan_id = cm_info->vlan_id; in i40iw_make_listen_node()
2899 listener->backlog = cm_info->backlog; in i40iw_make_listen_node()
2922 struct i40iw_cm_info *cm_info) in i40iw_create_cm_node() argument
2933 cm_node = i40iw_make_cm_node(cm_core, iwdev, cm_info, NULL); in i40iw_create_cm_node()
2942 if (!memcmp(cm_info->loc_addr, cm_info->rem_addr, sizeof(cm_info->loc_addr))) { in i40iw_create_cm_node()
2945 cm_info->rem_addr, in i40iw_create_cm_node()
2953 loopback_cm_info = *cm_info; in i40iw_create_cm_node()
2954 loopback_cm_info.loc_port = cm_info->rem_port; in i40iw_create_cm_node()
2955 loopback_cm_info.rem_port = cm_info->loc_port; in i40iw_create_cm_node()
2957 loopback_cm_info.ipv4 = cm_info->ipv4; in i40iw_create_cm_node()
3130 struct i40iw_cm_info cm_info; in i40iw_receive_ilq() local
3139 memset(&cm_info, 0, sizeof(cm_info)); in i40iw_receive_ilq()
3150 cm_info.user_pri = (vtag & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in i40iw_receive_ilq()
3151 cm_info.vlan_id = vtag & VLAN_VID_MASK; in i40iw_receive_ilq()
3156 cm_info.vlan_id); in i40iw_receive_ilq()
3158 cm_info.vlan_id = I40IW_NO_VLAN; in i40iw_receive_ilq()
3163 cm_info.loc_addr[0] = ntohl(iph->daddr); in i40iw_receive_ilq()
3164 cm_info.rem_addr[0] = ntohl(iph->saddr); in i40iw_receive_ilq()
3165 cm_info.ipv4 = true; in i40iw_receive_ilq()
3166 cm_info.tos = iph->tos; in i40iw_receive_ilq()
3169 i40iw_copy_ip_ntohl(cm_info.loc_addr, in i40iw_receive_ilq()
3171 i40iw_copy_ip_ntohl(cm_info.rem_addr, in i40iw_receive_ilq()
3173 cm_info.ipv4 = false; in i40iw_receive_ilq()
3174 cm_info.tos = (ip6h->priority << 4) | (ip6h->flow_lbl[0] >> 4); in i40iw_receive_ilq()
3176 cm_info.loc_port = ntohs(tcph->dest); in i40iw_receive_ilq()
3177 cm_info.rem_port = ntohs(tcph->source); in i40iw_receive_ilq()
3179 cm_info.rem_port, in i40iw_receive_ilq()
3180 cm_info.rem_addr, in i40iw_receive_ilq()
3181 cm_info.loc_port, in i40iw_receive_ilq()
3182 cm_info.loc_addr, in i40iw_receive_ilq()
3193 cm_info.loc_addr, in i40iw_receive_ilq()
3194 cm_info.loc_port, in i40iw_receive_ilq()
3195 cm_info.vlan_id, in i40iw_receive_ilq()
3198 cm_info.cm_id = NULL; in i40iw_receive_ilq()
3205 cm_info.cm_id = listener->cm_id; in i40iw_receive_ilq()
3206 cm_node = i40iw_make_cm_node(cm_core, iwdev, &cm_info, listener); in i40iw_receive_ilq()
3825 struct i40iw_cm_info cm_info; in i40iw_connect() local
3856 cm_info.ipv4 = true; in i40iw_connect()
3857 memset(cm_info.loc_addr, 0, sizeof(cm_info.loc_addr)); in i40iw_connect()
3858 memset(cm_info.rem_addr, 0, sizeof(cm_info.rem_addr)); in i40iw_connect()
3859 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in i40iw_connect()
3860 cm_info.rem_addr[0] = ntohl(raddr->sin_addr.s_addr); in i40iw_connect()
3861 cm_info.loc_port = ntohs(laddr->sin_port); in i40iw_connect()
3862 cm_info.rem_port = ntohs(raddr->sin_port); in i40iw_connect()
3863 cm_info.vlan_id = i40iw_get_vlan_ipv4(cm_info.loc_addr); in i40iw_connect()
3865 cm_info.ipv4 = false; in i40iw_connect()
3866 i40iw_copy_ip_ntohl(cm_info.loc_addr, in i40iw_connect()
3868 i40iw_copy_ip_ntohl(cm_info.rem_addr, in i40iw_connect()
3870 cm_info.loc_port = ntohs(laddr6->sin6_port); in i40iw_connect()
3871 cm_info.rem_port = ntohs(raddr6->sin6_port); in i40iw_connect()
3872 i40iw_netdev_vlan_ipv6(cm_info.loc_addr, &cm_info.vlan_id); in i40iw_connect()
3874 cm_info.cm_id = cm_id; in i40iw_connect()
3875 cm_info.tos = cm_id->tos; in i40iw_connect()
3876 cm_info.user_pri = rt_tos2priority(cm_id->tos); in i40iw_connect()
3878 __func__, cm_id->tos, cm_info.user_pri); in i40iw_connect()
3881 conn_param, &cm_info); in i40iw_connect()
3889 if ((cm_info.ipv4 && (laddr->sin_addr.s_addr != raddr->sin_addr.s_addr)) || in i40iw_connect()
3890 (!cm_info.ipv4 && memcmp(laddr6->sin6_addr.in6_u.u6_addr32, in i40iw_connect()
3893 if (i40iw_manage_qhash(iwdev, &cm_info, I40IW_QHASH_TYPE_TCP_ESTABLISHED, in i40iw_connect()
3901 if (i40iw_manage_apbvt(iwdev, cm_info.loc_port, in i40iw_connect()
3936 if (cm_info.ipv4) in i40iw_connect()
3940 cm_info.rem_addr); in i40iw_connect()
3945 cm_info.rem_addr); in i40iw_connect()
3962 struct i40iw_cm_info cm_info; in i40iw_create_listen() local
3974 memset(&cm_info, 0, sizeof(cm_info)); in i40iw_create_listen()
3976 cm_info.ipv4 = true; in i40iw_create_listen()
3977 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in i40iw_create_listen()
3978 cm_info.loc_port = ntohs(laddr->sin_port); in i40iw_create_listen()
3981 cm_info.vlan_id = i40iw_get_vlan_ipv4(cm_info.loc_addr); in i40iw_create_listen()
3986 cm_info.ipv4 = false; in i40iw_create_listen()
3987 i40iw_copy_ip_ntohl(cm_info.loc_addr, in i40iw_create_listen()
3989 cm_info.loc_port = ntohs(laddr6->sin6_port); in i40iw_create_listen()
3991 i40iw_netdev_vlan_ipv6(cm_info.loc_addr, in i40iw_create_listen()
3992 &cm_info.vlan_id); in i40iw_create_listen()
3996 cm_info.backlog = backlog; in i40iw_create_listen()
3997 cm_info.cm_id = cm_id; in i40iw_create_listen()
3999 cm_listen_node = i40iw_make_listen_node(&iwdev->cm_core, iwdev, &cm_info); in i40iw_create_listen()
4009 cm_info.user_pri = cm_listen_node->user_pri; in i40iw_create_listen()
4013 if (cm_info.ipv4) in i40iw_create_listen()
4015 &cm_info, in i40iw_create_listen()
4019 &cm_info, in i40iw_create_listen()
4025 cm_info.loc_port, in i40iw_create_listen()
4032 &cm_info, in i40iw_create_listen()
4041 cm_info.loc_port, in i40iw_create_listen()
4216 event->cm_info.cm_id->rem_ref(event->cm_info.cm_id); in i40iw_cm_event_handler()
4228 event->cm_info.cm_id->add_ref(event->cm_info.cm_id); in i40iw_cm_post_event()