Lines Matching refs:path_rec

1743 	kfree(id_priv->id.route.path_rec);
1889 rt->path_rec = kmalloc(sizeof *rt->path_rec * rt->num_paths,
1891 if (!rt->path_rec)
1894 rt->path_rec[0] = *ib_event->param.req_rcvd.primary_path;
1896 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path;
1906 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid);
1907 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey));
1914 rdma_addr_set_dgid(&rt->addr.dev_addr, &rt->path_rec[0].dgid);
2346 static void cma_query_handler(int status, struct ib_sa_path_rec *path_rec,
2356 *route->path_rec = *path_rec;
2371 struct ib_sa_path_rec path_rec;
2376 memset(&path_rec, 0, sizeof path_rec);
2377 rdma_addr_get_sgid(dev_addr, &path_rec.sgid);
2378 rdma_addr_get_dgid(dev_addr, &path_rec.dgid);
2379 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr));
2380 path_rec.numb_path = 1;
2381 path_rec.reversible = 1;
2382 path_rec.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv));
2390 path_rec.qos_class = cpu_to_be16((u16) id_priv->tos);
2395 path_rec.traffic_class = (u8) (be32_to_cpu(sin6->sin6_flowinfo) >> 20);
2400 path_rec.traffic_class = (u8) (be32_to_cpu(sib->sib_flowinfo) >> 20);
2406 id_priv->id.port_num, &path_rec,
2452 route->path_rec = kmalloc(sizeof *route->path_rec, GFP_KERNEL);
2453 if (!route->path_rec) {
2464 kfree(route->path_rec);
2465 route->path_rec = NULL;
2472 struct ib_sa_path_rec *path_rec, int num_paths)
2482 id->route.path_rec = kmemdup(path_rec, sizeof *path_rec * num_paths,
2484 if (!id->route.path_rec) {
2551 route->path_rec = kzalloc(sizeof *route->path_rec, GFP_KERNEL);
2552 if (!route->path_rec) {
2569 route->path_rec->net = ndev->if_vnet;
2570 route->path_rec->ifindex = ndev->if_index;
2573 route->path_rec->gid_type =
2583 memcpy(route->path_rec->dmac, addr->dev_addr.dst_dev_addr, ETH_ALEN);
2586 &route->path_rec->sgid);
2588 &route->path_rec->dgid);
2591 if (route->path_rec->gid_type < ib_network_to_gid_type(addr->dev_addr.network))
2592 route->path_rec->gid_type = ib_network_to_gid_type(addr->dev_addr.network);
2595 route->path_rec->hop_limit = addr->dev_addr.hoplimit;
2597 route->path_rec->hop_limit = 1;
2598 route->path_rec->reversible = 1;
2599 route->path_rec->pkey = cpu_to_be16(0xffff);
2600 route->path_rec->mtu_selector = IB_SA_EQ;
2601 route->path_rec->sl = iboe_tos_to_sl(ndev, id_priv->tos);
2602 route->path_rec->traffic_class = id_priv->tos;
2603 route->path_rec->mtu = iboe_get_mtu(ndev->if_mtu);
2604 route->path_rec->rate_selector = IB_SA_EQ;
2605 route->path_rec->rate = iboe_get_rate(ndev);
2607 route->path_rec->packet_life_time_selector = IB_SA_EQ;
2608 route->path_rec->packet_life_time = CMA_IBOE_PACKET_LIFETIME;
2609 if (!route->path_rec->mtu) {
2624 kfree(route->path_rec);
2625 route->path_rec = NULL;
3362 id_priv->id.route.path_rec,
3435 req.path = id_priv->id.route.path_rec;
3492 req.primary_path = &route->path_rec[0];
3494 req.alternate_path = &route->path_rec[1];