Lines Matching refs:primary_path

1319 	struct sa_path_rec *pri_path = param->primary_path;  in cm_format_req()
1345 be16_to_cpu(param->primary_path->pkey)); in cm_format_req()
1347 param->primary_path->mtu); in cm_format_req()
1460 if (!param->primary_path) in cm_validate_req_param()
1472 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param()
1473 param->alternate_path->mtu != param->primary_path->mtu)) in cm_validate_req_param()
1510 ret = cm_init_av_by_path(param->primary_path, in ib_send_cm_req()
1525 param->primary_path->packet_life_time) * 2 + in ib_send_cm_req()
1532 cm_id_priv->path_mtu = param->primary_path->mtu; in ib_send_cm_req()
1533 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req()
1632 struct sa_path_rec *primary_path, in cm_format_path_lid_from_req() argument
1637 if (primary_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1638 sa_path_set_dlid(primary_path, in cm_format_path_lid_from_req()
1641 sa_path_set_slid(primary_path, in cm_format_path_lid_from_req()
1647 sa_path_set_dlid(primary_path, lid); in cm_format_path_lid_from_req()
1651 sa_path_set_slid(primary_path, lid); in cm_format_path_lid_from_req()
1676 struct sa_path_rec *primary_path, in cm_format_paths_from_req() argument
1679 primary_path->dgid = in cm_format_paths_from_req()
1681 primary_path->sgid = in cm_format_paths_from_req()
1683 primary_path->flow_label = in cm_format_paths_from_req()
1685 primary_path->hop_limit = IBA_GET(CM_REQ_PRIMARY_HOP_LIMIT, req_msg); in cm_format_paths_from_req()
1686 primary_path->traffic_class = in cm_format_paths_from_req()
1688 primary_path->reversible = 1; in cm_format_paths_from_req()
1689 primary_path->pkey = in cm_format_paths_from_req()
1691 primary_path->sl = IBA_GET(CM_REQ_PRIMARY_SL, req_msg); in cm_format_paths_from_req()
1692 primary_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1693 primary_path->mtu = IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_format_paths_from_req()
1694 primary_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1695 primary_path->rate = IBA_GET(CM_REQ_PRIMARY_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1696 primary_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1697 primary_path->packet_life_time = in cm_format_paths_from_req()
1699 primary_path->packet_life_time -= (primary_path->packet_life_time > 0); in cm_format_paths_from_req()
1700 primary_path->service_id = in cm_format_paths_from_req()
1702 if (sa_path_is_roce(primary_path)) in cm_format_paths_from_req()
1703 primary_path->roce.route_resolved = false; in cm_format_paths_from_req()
1735 cm_format_path_lid_from_req(req_msg, primary_path, alt_path); in cm_format_paths_from_req()
1797 param->primary_path = &work->path[0]; in cm_format_req_event()
1798 cm_opa_to_ib_sgid(work, param->primary_path); in cm_format_req_event()