Lines Matching refs:alt_path
1281 struct sa_path_rec *alt_path = param->alternate_path; in cm_format_req() local
1342 if (alt_path) { in cm_format_req()
1345 if (alt_path->rec_type == SA_PATH_REC_TYPE_OPA) in cm_format_req()
1346 alt_ext = opa_is_extended_lid(alt_path->opa.dlid, in cm_format_req()
1347 alt_path->opa.slid); in cm_format_req()
1349 req_msg->alt_local_gid = alt_path->sgid; in cm_format_req()
1350 req_msg->alt_remote_gid = alt_path->dgid; in cm_format_req()
1353 = OPA_MAKE_ID(be32_to_cpu(alt_path->opa.slid)); in cm_format_req()
1355 = OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); in cm_format_req()
1357 if (alt_path->hop_limit <= 1) { in cm_format_req()
1359 htons(ntohl(sa_path_get_slid(alt_path))); in cm_format_req()
1361 htons(ntohl(sa_path_get_dlid(alt_path))); in cm_format_req()
1367 alt_path->flow_label); in cm_format_req()
1368 cm_req_set_alt_packet_rate(req_msg, alt_path->rate); in cm_format_req()
1369 req_msg->alt_traffic_class = alt_path->traffic_class; in cm_format_req()
1370 req_msg->alt_hop_limit = alt_path->hop_limit; in cm_format_req()
1371 cm_req_set_alt_sl(req_msg, alt_path->sl); in cm_format_req()
1372 cm_req_set_alt_subnet_local(req_msg, (alt_path->hop_limit <= 1)); in cm_format_req()
1375 alt_path->packet_life_time)); in cm_format_req()
1553 struct sa_path_rec *alt_path) in cm_format_path_lid_from_req() argument
1573 if (alt_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1574 sa_path_set_dlid(alt_path, ntohs(req_msg->alt_local_lid)); in cm_format_path_lid_from_req()
1575 sa_path_set_slid(alt_path, ntohs(req_msg->alt_remote_lid)); in cm_format_path_lid_from_req()
1578 sa_path_set_dlid(alt_path, lid); in cm_format_path_lid_from_req()
1581 sa_path_set_slid(alt_path, lid); in cm_format_path_lid_from_req()
1587 struct sa_path_rec *alt_path) in cm_format_paths_from_req() argument
1610 alt_path->dgid = req_msg->alt_local_gid; in cm_format_paths_from_req()
1611 alt_path->sgid = req_msg->alt_remote_gid; in cm_format_paths_from_req()
1612 alt_path->flow_label = cm_req_get_alt_flow_label(req_msg); in cm_format_paths_from_req()
1613 alt_path->hop_limit = req_msg->alt_hop_limit; in cm_format_paths_from_req()
1614 alt_path->traffic_class = req_msg->alt_traffic_class; in cm_format_paths_from_req()
1615 alt_path->reversible = 1; in cm_format_paths_from_req()
1616 alt_path->pkey = req_msg->pkey; in cm_format_paths_from_req()
1617 alt_path->sl = cm_req_get_alt_sl(req_msg); in cm_format_paths_from_req()
1618 alt_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1619 alt_path->mtu = cm_req_get_path_mtu(req_msg); in cm_format_paths_from_req()
1620 alt_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1621 alt_path->rate = cm_req_get_alt_packet_rate(req_msg); in cm_format_paths_from_req()
1622 alt_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1623 alt_path->packet_life_time = in cm_format_paths_from_req()
1625 alt_path->packet_life_time -= (alt_path->packet_life_time > 0); in cm_format_paths_from_req()
1626 alt_path->service_id = req_msg->service_id; in cm_format_paths_from_req()
1628 if (sa_path_is_roce(alt_path)) in cm_format_paths_from_req()
1629 alt_path->roce.route_resolved = false; in cm_format_paths_from_req()
1631 cm_format_path_lid_from_req(req_msg, primary_path, alt_path); in cm_format_paths_from_req()
4000 bool alt_path = false; in cm_recv_handler() local
4007 alt_path = cm_req_has_alt_path((struct cm_req_msg *) in cm_recv_handler()
4009 paths = 1 + (alt_path != 0); in cm_recv_handler()