Lines Matching refs:alt_path

1306 	struct sa_path_rec *alt_path = param->alternate_path;  in cm_format_req()  local
1393 if (alt_path) { in cm_format_req()
1396 if (alt_path->rec_type == SA_PATH_REC_TYPE_OPA) in cm_format_req()
1397 alt_ext = opa_is_extended_lid(alt_path->opa.dlid, in cm_format_req()
1398 alt_path->opa.slid); in cm_format_req()
1401 alt_path->sgid; in cm_format_req()
1403 alt_path->dgid; in cm_format_req()
1408 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.slid)); in cm_format_req()
1412 OPA_MAKE_ID(be32_to_cpu(alt_path->opa.dlid)); in cm_format_req()
1414 if (alt_path->hop_limit <= 1) { in cm_format_req()
1419 alt_path))))); in cm_format_req()
1424 alt_path))))); in cm_format_req()
1432 be32_to_cpu(alt_path->flow_label)); in cm_format_req()
1433 IBA_SET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg, alt_path->rate); in cm_format_req()
1435 alt_path->traffic_class); in cm_format_req()
1437 alt_path->hop_limit); in cm_format_req()
1438 IBA_SET(CM_REQ_ALTERNATE_SL, req_msg, alt_path->sl); in cm_format_req()
1440 (alt_path->hop_limit <= 1)); in cm_format_req()
1443 alt_path->packet_life_time)); in cm_format_req()
1630 struct sa_path_rec *alt_path, in cm_format_path_lid_from_req() argument
1653 if (alt_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1654 sa_path_set_dlid(alt_path, in cm_format_path_lid_from_req()
1657 sa_path_set_slid(alt_path, in cm_format_path_lid_from_req()
1663 sa_path_set_dlid(alt_path, lid); in cm_format_path_lid_from_req()
1667 sa_path_set_slid(alt_path, lid); in cm_format_path_lid_from_req()
1673 struct sa_path_rec *alt_path, in cm_format_paths_from_req() argument
1703 alt_path->dgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1705 alt_path->sgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1707 alt_path->flow_label = cpu_to_be32( in cm_format_paths_from_req()
1709 alt_path->hop_limit = in cm_format_paths_from_req()
1711 alt_path->traffic_class = in cm_format_paths_from_req()
1713 alt_path->reversible = 1; in cm_format_paths_from_req()
1714 alt_path->pkey = in cm_format_paths_from_req()
1716 alt_path->sl = IBA_GET(CM_REQ_ALTERNATE_SL, req_msg); in cm_format_paths_from_req()
1717 alt_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1718 alt_path->mtu = in cm_format_paths_from_req()
1720 alt_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1721 alt_path->rate = IBA_GET(CM_REQ_ALTERNATE_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1722 alt_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1723 alt_path->packet_life_time = in cm_format_paths_from_req()
1725 alt_path->packet_life_time -= (alt_path->packet_life_time > 0); in cm_format_paths_from_req()
1726 alt_path->service_id = in cm_format_paths_from_req()
1729 if (sa_path_is_roce(alt_path)) in cm_format_paths_from_req()
1730 alt_path->roce.route_resolved = false; in cm_format_paths_from_req()
1732 cm_format_path_lid_from_req(req_msg, primary_path, alt_path, wc); 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()