Lines Matching refs:alt_path
1012 struct ib_sa_path_rec *alt_path = param->alternate_path;
1069 if (alt_path) {
1070 if (alt_path->hop_limit <= 1) {
1071 req_msg->alt_local_lid = alt_path->slid;
1072 req_msg->alt_remote_lid = alt_path->dlid;
1077 req_msg->alt_local_gid = alt_path->sgid;
1078 req_msg->alt_remote_gid = alt_path->dgid;
1080 alt_path->flow_label);
1081 cm_req_set_alt_packet_rate(req_msg, alt_path->rate);
1082 req_msg->alt_traffic_class = alt_path->traffic_class;
1083 req_msg->alt_hop_limit = alt_path->hop_limit;
1084 cm_req_set_alt_sl(req_msg, alt_path->sl);
1085 cm_req_set_alt_subnet_local(req_msg, (alt_path->hop_limit <= 1));
1088 alt_path->packet_life_time));
1253 struct ib_sa_path_rec *alt_path)
1276 memset(alt_path, 0, sizeof *alt_path);
1277 alt_path->dgid = req_msg->alt_local_gid;
1278 alt_path->sgid = req_msg->alt_remote_gid;
1279 alt_path->dlid = req_msg->alt_local_lid;
1280 alt_path->slid = req_msg->alt_remote_lid;
1281 alt_path->flow_label = cm_req_get_alt_flow_label(req_msg);
1282 alt_path->hop_limit = req_msg->alt_hop_limit;
1283 alt_path->traffic_class = req_msg->alt_traffic_class;
1284 alt_path->reversible = 1;
1285 alt_path->pkey = req_msg->pkey;
1286 alt_path->sl = cm_req_get_alt_sl(req_msg);
1287 alt_path->mtu_selector = IB_SA_EQ;
1288 alt_path->mtu = cm_req_get_path_mtu(req_msg);
1289 alt_path->rate_selector = IB_SA_EQ;
1290 alt_path->rate = cm_req_get_alt_packet_rate(req_msg);
1291 alt_path->packet_life_time_selector = IB_SA_EQ;
1292 alt_path->packet_life_time =
1294 alt_path->packet_life_time -= (alt_path->packet_life_time > 0);