Lines Matching refs:alt_path
1340 struct sa_path_rec *alt_path = param->alternate_path; in cm_format_req() local
1419 if (alt_path) { in cm_format_req()
1422 if (alt_path->rec_type == SA_PATH_REC_TYPE_OPA) in cm_format_req()
1423 alt_ext = opa_is_extended_lid(alt_path->opa.dlid, in cm_format_req()
1424 alt_path->opa.slid); in cm_format_req()
1427 alt_path->sgid; in cm_format_req()
1429 alt_path->dgid; in cm_format_req()
1434 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.slid)); in cm_format_req()
1438 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); in cm_format_req()
1440 if (alt_path->hop_limit <= 1) { in cm_format_req()
1445 alt_path))))); in cm_format_req()
1450 alt_path))))); in cm_format_req()
1458 be32_to_cpu(alt_path->flow_label)); in cm_format_req()
1459 IBA_SET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg, alt_path->rate); in cm_format_req()
1461 alt_path->traffic_class); in cm_format_req()
1463 alt_path->hop_limit); in cm_format_req()
1464 IBA_SET(CM_REQ_ALTERNATE_SL, req_msg, alt_path->sl); in cm_format_req()
1466 (alt_path->hop_limit <= 1)); in cm_format_req()
1469 alt_path->packet_life_time)); in cm_format_req()
1644 struct sa_path_rec *alt_path) in cm_format_path_lid_from_req() argument
1668 if (alt_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1669 sa_path_set_dlid(alt_path, in cm_format_path_lid_from_req()
1672 sa_path_set_slid(alt_path, in cm_format_path_lid_from_req()
1678 sa_path_set_dlid(alt_path, lid); in cm_format_path_lid_from_req()
1682 sa_path_set_slid(alt_path, lid); in cm_format_path_lid_from_req()
1688 struct sa_path_rec *alt_path) in cm_format_paths_from_req() argument
1717 alt_path->dgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1719 alt_path->sgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1721 alt_path->flow_label = cpu_to_be32( in cm_format_paths_from_req()
1723 alt_path->hop_limit = in cm_format_paths_from_req()
1725 alt_path->traffic_class = in cm_format_paths_from_req()
1727 alt_path->reversible = 1; in cm_format_paths_from_req()
1728 alt_path->pkey = in cm_format_paths_from_req()
1730 alt_path->sl = IBA_GET(CM_REQ_ALTERNATE_SL, req_msg); in cm_format_paths_from_req()
1731 alt_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1732 alt_path->mtu = in cm_format_paths_from_req()
1734 alt_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1735 alt_path->rate = IBA_GET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1736 alt_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1737 alt_path->packet_life_time = in cm_format_paths_from_req()
1739 alt_path->packet_life_time -= (alt_path->packet_life_time > 0); in cm_format_paths_from_req()
1740 alt_path->service_id = in cm_format_paths_from_req()
1743 if (sa_path_is_roce(alt_path)) in cm_format_paths_from_req()
1744 alt_path->roce.route_resolved = false; in cm_format_paths_from_req()
1746 cm_format_path_lid_from_req(req_msg, primary_path, alt_path); in cm_format_paths_from_req()
4019 bool alt_path = false; in cm_recv_handler() local
4026 alt_path = cm_req_has_alt_path((struct cm_req_msg *) in cm_recv_handler()
4028 paths = 1 + (alt_path != 0); in cm_recv_handler()