Lines Matching refs:path_rec
1080 kfree(id_priv->id.route.path_rec); in rdma_destroy_id()
1218 rt->path_rec = kmalloc(sizeof *rt->path_rec * rt->num_paths, in cma_new_conn_id()
1220 if (!rt->path_rec) in cma_new_conn_id()
1223 rt->path_rec[0] = *ib_event->param.req_rcvd.primary_path; in cma_new_conn_id()
1225 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path; in cma_new_conn_id()
1229 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_new_conn_id()
1230 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey)); in cma_new_conn_id()
1236 rdma_addr_set_dgid(&rt->addr.dev_addr, &rt->path_rec[0].dgid); in cma_new_conn_id()
1692 static void cma_query_handler(int status, struct ib_sa_path_rec *path_rec, in cma_query_handler() argument
1702 *route->path_rec = *path_rec; in cma_query_handler()
1717 struct ib_sa_path_rec path_rec; in cma_query_ib_route() local
1722 memset(&path_rec, 0, sizeof path_rec); in cma_query_ib_route()
1723 rdma_addr_get_sgid(dev_addr, &path_rec.sgid); in cma_query_ib_route()
1724 rdma_addr_get_dgid(dev_addr, &path_rec.dgid); in cma_query_ib_route()
1725 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); in cma_query_ib_route()
1726 path_rec.numb_path = 1; in cma_query_ib_route()
1727 path_rec.reversible = 1; in cma_query_ib_route()
1728 path_rec.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); in cma_query_ib_route()
1736 path_rec.qos_class = cpu_to_be16((u16) id_priv->tos); in cma_query_ib_route()
1741 path_rec.traffic_class = (u8) (be32_to_cpu(sin6->sin6_flowinfo) >> 20); in cma_query_ib_route()
1746 path_rec.traffic_class = (u8) (be32_to_cpu(sib->sib_flowinfo) >> 20); in cma_query_ib_route()
1752 id_priv->id.port_num, &path_rec, in cma_query_ib_route()
1822 route->path_rec = kmalloc(sizeof *route->path_rec, GFP_KERNEL); in cma_resolve_ib_route()
1823 if (!route->path_rec) { in cma_resolve_ib_route()
1834 kfree(route->path_rec); in cma_resolve_ib_route()
1835 route->path_rec = NULL; in cma_resolve_ib_route()
1842 struct ib_sa_path_rec *path_rec, int num_paths) in rdma_set_ib_paths() argument
1852 id->route.path_rec = kmemdup(path_rec, sizeof *path_rec * num_paths, in rdma_set_ib_paths()
1854 if (!id->route.path_rec) { in rdma_set_ib_paths()
1920 route->path_rec = kzalloc(sizeof *route->path_rec, GFP_KERNEL); in cma_resolve_iboe_route()
1921 if (!route->path_rec) { in cma_resolve_iboe_route()
1935 route->path_rec->vlan_id = rdma_vlan_dev_vlan_id(ndev); in cma_resolve_iboe_route()
1936 memcpy(route->path_rec->dmac, addr->dev_addr.dst_dev_addr, ETH_ALEN); in cma_resolve_iboe_route()
1937 memcpy(route->path_rec->smac, ndev->dev_addr, ndev->addr_len); in cma_resolve_iboe_route()
1940 &route->path_rec->sgid); in cma_resolve_iboe_route()
1942 &route->path_rec->dgid); in cma_resolve_iboe_route()
1944 route->path_rec->hop_limit = 1; in cma_resolve_iboe_route()
1945 route->path_rec->reversible = 1; in cma_resolve_iboe_route()
1946 route->path_rec->pkey = cpu_to_be16(0xffff); in cma_resolve_iboe_route()
1947 route->path_rec->mtu_selector = IB_SA_EQ; in cma_resolve_iboe_route()
1948 route->path_rec->sl = iboe_tos_to_sl(ndev, id_priv->tos); in cma_resolve_iboe_route()
1949 route->path_rec->mtu = iboe_get_mtu(ndev->mtu); in cma_resolve_iboe_route()
1950 route->path_rec->rate_selector = IB_SA_EQ; in cma_resolve_iboe_route()
1951 route->path_rec->rate = iboe_get_rate(ndev); in cma_resolve_iboe_route()
1953 route->path_rec->packet_life_time_selector = IB_SA_EQ; in cma_resolve_iboe_route()
1954 route->path_rec->packet_life_time = CMA_IBOE_PACKET_LIFETIME; in cma_resolve_iboe_route()
1955 if (!route->path_rec->mtu) { in cma_resolve_iboe_route()
1970 kfree(route->path_rec); in cma_resolve_iboe_route()
1971 route->path_rec = NULL; in cma_resolve_iboe_route()
2695 id_priv->id.route.path_rec, in cma_sidr_rep_handler()
2763 req.path = id_priv->id.route.path_rec; in cma_resolve_ib_udp()
2820 req.primary_path = &route->path_rec[0]; in cma_connect_ib()
2822 req.alternate_path = &route->path_rec[1]; in cma_connect_ib()