Lines Matching refs:path_rec

1862 	kfree(id_priv->id.route.path_rec);  in _destroy_id()
2083 rt->path_rec = kmalloc_array(rt->num_paths, sizeof(*rt->path_rec), in cma_ib_new_conn_id()
2085 if (!rt->path_rec) in cma_ib_new_conn_id()
2088 rt->path_rec[0] = *path; in cma_ib_new_conn_id()
2090 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path; in cma_ib_new_conn_id()
2098 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_ib_new_conn_id()
2099 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey)); in cma_ib_new_conn_id()
2106 rdma_addr_set_dgid(&rt->addr.dev_addr, &rt->path_rec[0].dgid); in cma_ib_new_conn_id()
2585 static void cma_query_handler(int status, struct sa_path_rec *path_rec, in cma_query_handler() argument
2595 *route->path_rec = *path_rec; in cma_query_handler()
2612 struct sa_path_rec path_rec; in cma_query_ib_route() local
2617 memset(&path_rec, 0, sizeof path_rec); in cma_query_ib_route()
2620 path_rec.rec_type = SA_PATH_REC_TYPE_OPA; in cma_query_ib_route()
2622 path_rec.rec_type = SA_PATH_REC_TYPE_IB; in cma_query_ib_route()
2623 rdma_addr_get_sgid(dev_addr, &path_rec.sgid); in cma_query_ib_route()
2624 rdma_addr_get_dgid(dev_addr, &path_rec.dgid); in cma_query_ib_route()
2625 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); in cma_query_ib_route()
2626 path_rec.numb_path = 1; in cma_query_ib_route()
2627 path_rec.reversible = 1; in cma_query_ib_route()
2628 path_rec.service_id = rdma_get_service_id(&id_priv->id, in cma_query_ib_route()
2637 path_rec.qos_class = cpu_to_be16((u16) id_priv->tos); in cma_query_ib_route()
2642 path_rec.traffic_class = (u8) (be32_to_cpu(sin6->sin6_flowinfo) >> 20); in cma_query_ib_route()
2647 path_rec.traffic_class = (u8) (be32_to_cpu(sib->sib_flowinfo) >> 20); in cma_query_ib_route()
2653 id_priv->id.port_num, &path_rec, in cma_query_ib_route()
2728 route->path_rec = kmalloc(sizeof *route->path_rec, GFP_KERNEL); in cma_resolve_ib_route()
2729 if (!route->path_rec) { in cma_resolve_ib_route()
2740 kfree(route->path_rec); in cma_resolve_ib_route()
2741 route->path_rec = NULL; in cma_resolve_ib_route()
2791 route->path_rec->rec_type = sa_conv_gid_to_pathrec_type(gid_type); in cma_iboe_set_path_rec_l2_fields()
2793 route->path_rec->roce.route_resolved = true; in cma_iboe_set_path_rec_l2_fields()
2794 sa_path_set_dmac(route->path_rec, addr->dev_addr.dst_dev_addr); in cma_iboe_set_path_rec_l2_fields()
2799 struct sa_path_rec *path_rec) in rdma_set_ib_path() argument
2810 id->route.path_rec = kmemdup(path_rec, sizeof(*path_rec), in rdma_set_ib_path()
2812 if (!id->route.path_rec) { in rdma_set_ib_path()
2830 kfree(id->route.path_rec); in rdma_set_ib_path()
2831 id->route.path_rec = NULL; in rdma_set_ib_path()
2950 route->path_rec = kzalloc(sizeof *route->path_rec, GFP_KERNEL); in cma_resolve_iboe_route()
2951 if (!route->path_rec) { in cma_resolve_iboe_route()
2965 &route->path_rec->sgid); in cma_resolve_iboe_route()
2967 &route->path_rec->dgid); in cma_resolve_iboe_route()
2971 route->path_rec->hop_limit = addr->dev_addr.hoplimit; in cma_resolve_iboe_route()
2973 route->path_rec->hop_limit = 1; in cma_resolve_iboe_route()
2974 route->path_rec->reversible = 1; in cma_resolve_iboe_route()
2975 route->path_rec->pkey = cpu_to_be16(0xffff); in cma_resolve_iboe_route()
2976 route->path_rec->mtu_selector = IB_SA_EQ; in cma_resolve_iboe_route()
2977 route->path_rec->sl = iboe_tos_to_sl(ndev, tos); in cma_resolve_iboe_route()
2978 route->path_rec->traffic_class = tos; in cma_resolve_iboe_route()
2979 route->path_rec->mtu = iboe_get_mtu(ndev->mtu); in cma_resolve_iboe_route()
2980 route->path_rec->rate_selector = IB_SA_EQ; in cma_resolve_iboe_route()
2981 route->path_rec->rate = iboe_get_rate(ndev); in cma_resolve_iboe_route()
2983 route->path_rec->packet_life_time_selector = IB_SA_EQ; in cma_resolve_iboe_route()
2991 route->path_rec->packet_life_time = id_priv->timeout_set ? in cma_resolve_iboe_route()
2994 if (!route->path_rec->mtu) { in cma_resolve_iboe_route()
3001 route->path_rec->flow_label = in cma_resolve_iboe_route()
3010 kfree(route->path_rec); in cma_resolve_iboe_route()
3011 route->path_rec = NULL; in cma_resolve_iboe_route()
3834 id_priv->id.route.path_rec, in cma_sidr_rep_handler()
3904 req.path = id_priv->id.route.path_rec; in cma_resolve_ib_udp()
3964 req.primary_path = &route->path_rec[0]; in cma_connect_ib()
3966 req.alternate_path = &route->path_rec[1]; in cma_connect_ib()