Lines Matching refs:lap_msg

3083 static void cm_format_lap(struct cm_lap_msg *lap_msg,  in cm_format_lap()  argument
3094 cm_format_mad_hdr(&lap_msg->hdr, CM_LAP_ATTR_ID, in cm_format_lap()
3096 lap_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_lap()
3097 lap_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_lap()
3098 cm_lap_set_remote_qpn(lap_msg, cm_id_priv->remote_qpn); in cm_format_lap()
3100 cm_lap_set_remote_resp_timeout(lap_msg, 0x1F); in cm_format_lap()
3101 lap_msg->alt_local_lid = in cm_format_lap()
3103 lap_msg->alt_remote_lid = in cm_format_lap()
3105 lap_msg->alt_local_gid = alternate_path->sgid; in cm_format_lap()
3106 lap_msg->alt_remote_gid = alternate_path->dgid; in cm_format_lap()
3108 lap_msg->alt_local_gid.global.interface_id in cm_format_lap()
3110 lap_msg->alt_remote_gid.global.interface_id in cm_format_lap()
3113 cm_lap_set_flow_label(lap_msg, alternate_path->flow_label); in cm_format_lap()
3114 cm_lap_set_traffic_class(lap_msg, alternate_path->traffic_class); in cm_format_lap()
3115 lap_msg->alt_hop_limit = alternate_path->hop_limit; in cm_format_lap()
3116 cm_lap_set_packet_rate(lap_msg, alternate_path->rate); in cm_format_lap()
3117 cm_lap_set_sl(lap_msg, alternate_path->sl); in cm_format_lap()
3118 cm_lap_set_subnet_local(lap_msg, 1); /* local only... */ in cm_format_lap()
3119 cm_lap_set_local_ack_timeout(lap_msg, in cm_format_lap()
3124 memcpy(lap_msg->private_data, private_data, private_data_len); in cm_format_lap()
3181 static void cm_format_path_lid_from_lap(struct cm_lap_msg *lap_msg, in cm_format_path_lid_from_lap() argument
3187 sa_path_set_dlid(path, ntohs(lap_msg->alt_local_lid)); in cm_format_path_lid_from_lap()
3188 sa_path_set_slid(path, ntohs(lap_msg->alt_remote_lid)); in cm_format_path_lid_from_lap()
3190 lid = opa_get_lid_from_gid(&lap_msg->alt_local_gid); in cm_format_path_lid_from_lap()
3193 lid = opa_get_lid_from_gid(&lap_msg->alt_remote_gid); in cm_format_path_lid_from_lap()
3200 struct cm_lap_msg *lap_msg) in cm_format_path_from_lap() argument
3202 path->dgid = lap_msg->alt_local_gid; in cm_format_path_from_lap()
3203 path->sgid = lap_msg->alt_remote_gid; in cm_format_path_from_lap()
3204 path->flow_label = cm_lap_get_flow_label(lap_msg); in cm_format_path_from_lap()
3205 path->hop_limit = lap_msg->alt_hop_limit; in cm_format_path_from_lap()
3206 path->traffic_class = cm_lap_get_traffic_class(lap_msg); in cm_format_path_from_lap()
3209 path->sl = cm_lap_get_sl(lap_msg); in cm_format_path_from_lap()
3213 path->rate = cm_lap_get_packet_rate(lap_msg); in cm_format_path_from_lap()
3215 path->packet_life_time = cm_lap_get_local_ack_timeout(lap_msg); in cm_format_path_from_lap()
3217 cm_format_path_lid_from_lap(lap_msg, path); in cm_format_path_from_lap()
3223 struct cm_lap_msg *lap_msg; in cm_lap_handler() local
3236 lap_msg = (struct cm_lap_msg *)work->mad_recv_wc->recv_buf.mad; in cm_lap_handler()
3237 cm_id_priv = cm_acquire_id(lap_msg->remote_comm_id, in cm_lap_handler()
3238 lap_msg->local_comm_id); in cm_lap_handler()
3247 &lap_msg->alt_local_gid); in cm_lap_handler()
3249 cm_format_path_from_lap(cm_id_priv, param->alternate_path, lap_msg); in cm_lap_handler()
3250 work->cm_event.private_data = &lap_msg->private_data; in cm_lap_handler()
3298 cm_id_priv->tid = lap_msg->hdr.tid; in cm_lap_handler()