Searched refs:sa_path (Results 1 – 4 of 4) sorted by relevance
684 struct ibv_sa_path_rec *sa_path) in ucma_convert_path() argument688 sa_path->dgid = path_data->path.dgid; in ucma_convert_path()689 sa_path->sgid = path_data->path.sgid; in ucma_convert_path()690 sa_path->dlid = path_data->path.dlid; in ucma_convert_path()691 sa_path->slid = path_data->path.slid; in ucma_convert_path()692 sa_path->raw_traffic = 0; in ucma_convert_path()695 sa_path->flow_label = htobe32(fl_hop >> 8); in ucma_convert_path()696 sa_path->hop_limit = (uint8_t) fl_hop; in ucma_convert_path()698 sa_path->traffic_class = path_data->path.tclass; in ucma_convert_path()699 sa_path->reversible = path_data->path.reversible_numpath >> 7; in ucma_convert_path()[all …]
3545 static void rs_convert_sa_path(struct ibv_sa_path_rec *sa_path, in rs_convert_sa_path() argument3551 path_data->path.dgid = sa_path->dgid; in rs_convert_sa_path()3552 path_data->path.sgid = sa_path->sgid; in rs_convert_sa_path()3553 path_data->path.dlid = sa_path->dlid; in rs_convert_sa_path()3554 path_data->path.slid = sa_path->slid; in rs_convert_sa_path()3555 fl_hop = be32toh(sa_path->flow_label) << 8; in rs_convert_sa_path()3556 path_data->path.flowlabel_hoplimit = htobe32(fl_hop | sa_path->hop_limit); in rs_convert_sa_path()3557 path_data->path.tclass = sa_path->traffic_class; in rs_convert_sa_path()3558 path_data->path.reversible_numpath = sa_path->reversible << 7 | 1; in rs_convert_sa_path()3559 path_data->path.pkey = sa_path->pkey; in rs_convert_sa_path()[all …]
709 struct ib_sa_path_rec *sa_path; in ib_ucm_path_get() local716 sa_path = kmalloc(sizeof(*sa_path), GFP_KERNEL); in ib_ucm_path_get()717 if (!sa_path) in ib_ucm_path_get()723 kfree(sa_path); in ib_ucm_path_get()727 ib_copy_path_rec_from_user(sa_path, &upath); in ib_ucm_path_get()728 *path = sa_path; in ib_ucm_path_get()
1225 struct ib_sa_path_rec sa_path; in ucma_set_ib_path() local1241 memset(&sa_path, 0, sizeof(sa_path)); in ucma_set_ib_path()1243 ib_sa_unpack_path(path_data->path_rec, &sa_path); in ucma_set_ib_path()1244 ret = rdma_set_ib_paths(ctx->cm_id, &sa_path, 1); in ucma_set_ib_path()