Lines Matching full:alt_path

1344 	struct sa_path_rec *alt_path = param->alternate_path;  in cm_format_req()  local
1431 if (alt_path) { in cm_format_req()
1434 if (alt_path->rec_type == SA_PATH_REC_TYPE_OPA) in cm_format_req()
1435 alt_ext = opa_is_extended_lid(alt_path->opa.dlid, in cm_format_req()
1436 alt_path->opa.slid); in cm_format_req()
1439 alt_path->sgid; in cm_format_req()
1441 alt_path->dgid; in cm_format_req()
1446 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.slid)); in cm_format_req()
1450 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); in cm_format_req()
1452 if (alt_path->hop_limit <= 1) { in cm_format_req()
1457 alt_path))))); in cm_format_req()
1462 alt_path))))); in cm_format_req()
1470 be32_to_cpu(alt_path->flow_label)); in cm_format_req()
1471 IBA_SET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg, alt_path->rate); in cm_format_req()
1473 alt_path->traffic_class); in cm_format_req()
1475 alt_path->hop_limit); in cm_format_req()
1476 IBA_SET(CM_REQ_ALTERNATE_SL, req_msg, alt_path->sl); in cm_format_req()
1478 (alt_path->hop_limit <= 1)); in cm_format_req()
1481 alt_path->packet_life_time)); in cm_format_req()
1666 struct sa_path_rec *alt_path, in cm_format_path_lid_from_req() argument
1689 if (alt_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1690 sa_path_set_dlid(alt_path, in cm_format_path_lid_from_req()
1693 sa_path_set_slid(alt_path, in cm_format_path_lid_from_req()
1699 sa_path_set_dlid(alt_path, lid); in cm_format_path_lid_from_req()
1703 sa_path_set_slid(alt_path, lid); in cm_format_path_lid_from_req()
1709 struct sa_path_rec *alt_path, in cm_format_paths_from_req() argument
1739 alt_path->dgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1741 alt_path->sgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1743 alt_path->flow_label = cpu_to_be32( in cm_format_paths_from_req()
1745 alt_path->hop_limit = in cm_format_paths_from_req()
1747 alt_path->traffic_class = in cm_format_paths_from_req()
1749 alt_path->reversible = 1; in cm_format_paths_from_req()
1750 alt_path->pkey = in cm_format_paths_from_req()
1752 alt_path->sl = IBA_GET(CM_REQ_ALTERNATE_SL, req_msg); in cm_format_paths_from_req()
1753 alt_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1754 alt_path->mtu = in cm_format_paths_from_req()
1756 alt_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1757 alt_path->rate = IBA_GET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1758 alt_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1759 alt_path->packet_life_time = in cm_format_paths_from_req()
1761 alt_path->packet_life_time -= (alt_path->packet_life_time > 0); in cm_format_paths_from_req()
1762 alt_path->service_id = in cm_format_paths_from_req()
1765 if (sa_path_is_roce(alt_path)) in cm_format_paths_from_req()
1766 alt_path->roce.route_resolved = false; in cm_format_paths_from_req()
1768 cm_format_path_lid_from_req(req_msg, primary_path, alt_path, wc); in cm_format_paths_from_req()
4002 bool alt_path = false; in cm_recv_handler() local
4009 alt_path = cm_req_has_alt_path((struct cm_req_msg *) in cm_recv_handler()
4011 paths = 1 + (alt_path != 0); in cm_recv_handler()