Lines Matching refs:primary_path

1339 	struct sa_path_rec *pri_path = param->primary_path;  in cm_format_req()
1365 be16_to_cpu(param->primary_path->pkey)); in cm_format_req()
1367 param->primary_path->mtu); in cm_format_req()
1480 if (!param->primary_path) in cm_validate_req_param()
1492 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param()
1493 param->alternate_path->mtu != param->primary_path->mtu)) in cm_validate_req_param()
1529 ret = cm_init_av_by_path(param->primary_path, in ib_send_cm_req()
1543 param->primary_path->packet_life_time) * 2 + in ib_send_cm_req()
1550 cm_id_priv->path_mtu = param->primary_path->mtu; in ib_send_cm_req()
1551 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req()
1643 struct sa_path_rec *primary_path, in cm_format_path_lid_from_req() argument
1648 if (primary_path->rec_type != SA_PATH_REC_TYPE_OPA) { in cm_format_path_lid_from_req()
1649 sa_path_set_dlid(primary_path, in cm_format_path_lid_from_req()
1652 sa_path_set_slid(primary_path, in cm_format_path_lid_from_req()
1658 sa_path_set_dlid(primary_path, lid); in cm_format_path_lid_from_req()
1662 sa_path_set_slid(primary_path, lid); in cm_format_path_lid_from_req()
1687 struct sa_path_rec *primary_path, in cm_format_paths_from_req() argument
1690 primary_path->dgid = in cm_format_paths_from_req()
1692 primary_path->sgid = in cm_format_paths_from_req()
1694 primary_path->flow_label = in cm_format_paths_from_req()
1696 primary_path->hop_limit = IBA_GET(CM_REQ_PRIMARY_HOP_LIMIT, req_msg); in cm_format_paths_from_req()
1697 primary_path->traffic_class = in cm_format_paths_from_req()
1699 primary_path->reversible = 1; in cm_format_paths_from_req()
1700 primary_path->pkey = in cm_format_paths_from_req()
1702 primary_path->sl = IBA_GET(CM_REQ_PRIMARY_SL, req_msg); in cm_format_paths_from_req()
1703 primary_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1704 primary_path->mtu = IBA_GET(CM_REQ_PATH_PACKET_PAYLOAD_MTU, req_msg); in cm_format_paths_from_req()
1705 primary_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1706 primary_path->rate = IBA_GET(CM_REQ_PRIMARY_PACKET_RATE, req_msg); in cm_format_paths_from_req()
1707 primary_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1708 primary_path->packet_life_time = in cm_format_paths_from_req()
1710 primary_path->packet_life_time -= (primary_path->packet_life_time > 0); in cm_format_paths_from_req()
1711 primary_path->service_id = in cm_format_paths_from_req()
1713 if (sa_path_is_roce(primary_path)) in cm_format_paths_from_req()
1714 primary_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()
1808 param->primary_path = &work->path[0]; in cm_format_req_event()
1809 cm_opa_to_ib_sgid(work, param->primary_path); in cm_format_req_event()