Lines Matching refs:primary_path

1305 	struct sa_path_rec *pri_path = param->primary_path;  in cm_format_req()
1332 be16_to_cpu(param->primary_path->pkey)); in cm_format_req()
1334 param->primary_path->mtu); in cm_format_req()
1454 if (!param->primary_path) in cm_validate_req_param()
1466 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param()
1467 param->alternate_path->mtu != param->primary_path->mtu)) in cm_validate_req_param()
1504 ret = cm_init_av_by_path(param->primary_path, in ib_send_cm_req()
1518 param->primary_path->packet_life_time) * 2 + in ib_send_cm_req()
1525 cm_id_priv->path_mtu = param->primary_path->mtu; in ib_send_cm_req()
1526 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req()
1629 struct sa_path_rec *primary_path, in cm_format_path_lid_from_req() argument
1635 if (primary_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1636 sa_path_set_dlid(primary_path, wc->slid); in cm_format_path_lid_from_req()
1637 sa_path_set_slid(primary_path, in cm_format_path_lid_from_req()
1643 sa_path_set_dlid(primary_path, lid); in cm_format_path_lid_from_req()
1647 sa_path_set_slid(primary_path, lid); in cm_format_path_lid_from_req()
1672 struct sa_path_rec *primary_path, in cm_format_paths_from_req() argument
1676 primary_path->dgid = in cm_format_paths_from_req()
1678 primary_path->sgid = in cm_format_paths_from_req()
1680 primary_path->flow_label = in cm_format_paths_from_req()
1682 primary_path->hop_limit = IBA_GET(CM_REQ_PRIMARY_HOP_LIMIT, req_msg); in cm_format_paths_from_req()
1683 primary_path->traffic_class = in cm_format_paths_from_req()
1685 primary_path->reversible = 1; in cm_format_paths_from_req()
1686 primary_path->pkey = in cm_format_paths_from_req()
1688 primary_path->sl = IBA_GET(CM_REQ_PRIMARY_SL, req_msg); in cm_format_paths_from_req()
1689 primary_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1690 primary_path->mtu = IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_format_paths_from_req()
1691 primary_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1692 primary_path->rate = IBA_GET(CM_REQ_PRIMARY_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1693 primary_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1694 primary_path->packet_life_time = in cm_format_paths_from_req()
1696 primary_path->packet_life_time -= (primary_path->packet_life_time > 0); in cm_format_paths_from_req()
1697 primary_path->service_id = in cm_format_paths_from_req()
1699 if (sa_path_is_roce(primary_path)) in cm_format_paths_from_req()
1700 primary_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()
1794 param->primary_path = &work->path[0]; in cm_format_req_event()
1795 cm_opa_to_ib_sgid(work, param->primary_path); in cm_format_req_event()