Lines Matching refs:alt_path
1066 struct ib_sa_path_rec *alt_path = param->alternate_path; in cm_format_req() local
1114 if (alt_path) { in cm_format_req()
1115 if (alt_path->hop_limit <= 1) { in cm_format_req()
1116 req_msg->alt_local_lid = alt_path->slid; in cm_format_req()
1117 req_msg->alt_remote_lid = alt_path->dlid; in cm_format_req()
1122 req_msg->alt_local_gid = alt_path->sgid; in cm_format_req()
1123 req_msg->alt_remote_gid = alt_path->dgid; in cm_format_req()
1125 alt_path->flow_label); in cm_format_req()
1126 cm_req_set_alt_packet_rate(req_msg, alt_path->rate); in cm_format_req()
1127 req_msg->alt_traffic_class = alt_path->traffic_class; in cm_format_req()
1128 req_msg->alt_hop_limit = alt_path->hop_limit; in cm_format_req()
1129 cm_req_set_alt_sl(req_msg, alt_path->sl); in cm_format_req()
1130 cm_req_set_alt_subnet_local(req_msg, (alt_path->hop_limit <= 1)); in cm_format_req()
1133 alt_path->packet_life_time)); in cm_format_req()
1294 struct ib_sa_path_rec *alt_path) in cm_format_paths_from_req() argument
1318 memset(alt_path, 0, sizeof *alt_path); in cm_format_paths_from_req()
1319 alt_path->dgid = req_msg->alt_local_gid; in cm_format_paths_from_req()
1320 alt_path->sgid = req_msg->alt_remote_gid; in cm_format_paths_from_req()
1321 alt_path->dlid = req_msg->alt_local_lid; in cm_format_paths_from_req()
1322 alt_path->slid = req_msg->alt_remote_lid; in cm_format_paths_from_req()
1323 alt_path->flow_label = cm_req_get_alt_flow_label(req_msg); in cm_format_paths_from_req()
1324 alt_path->hop_limit = req_msg->alt_hop_limit; in cm_format_paths_from_req()
1325 alt_path->traffic_class = req_msg->alt_traffic_class; in cm_format_paths_from_req()
1326 alt_path->reversible = 1; in cm_format_paths_from_req()
1327 alt_path->pkey = req_msg->pkey; in cm_format_paths_from_req()
1328 alt_path->sl = cm_req_get_alt_sl(req_msg); in cm_format_paths_from_req()
1329 alt_path->mtu_selector = IB_SA_EQ; in cm_format_paths_from_req()
1330 alt_path->mtu = cm_req_get_path_mtu(req_msg); in cm_format_paths_from_req()
1331 alt_path->rate_selector = IB_SA_EQ; in cm_format_paths_from_req()
1332 alt_path->rate = cm_req_get_alt_packet_rate(req_msg); in cm_format_paths_from_req()
1333 alt_path->packet_life_time_selector = IB_SA_EQ; in cm_format_paths_from_req()
1334 alt_path->packet_life_time = in cm_format_paths_from_req()
1336 alt_path->packet_life_time -= (alt_path->packet_life_time > 0); in cm_format_paths_from_req()
1337 alt_path->service_id = req_msg->service_id; in cm_format_paths_from_req()