Lines Matching refs:lap_msg

3086 static void cm_format_lap(struct cm_lap_msg *lap_msg,  in cm_format_lap()  argument
3097 cm_format_mad_hdr(&lap_msg->hdr, CM_LAP_ATTR_ID, in cm_format_lap()
3099 lap_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_lap()
3100 lap_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_lap()
3101 cm_lap_set_remote_qpn(lap_msg, cm_id_priv->remote_qpn); in cm_format_lap()
3103 cm_lap_set_remote_resp_timeout(lap_msg, 0x1F); in cm_format_lap()
3104 lap_msg->alt_local_lid = in cm_format_lap()
3106 lap_msg->alt_remote_lid = in cm_format_lap()
3108 lap_msg->alt_local_gid = alternate_path->sgid; in cm_format_lap()
3109 lap_msg->alt_remote_gid = alternate_path->dgid; in cm_format_lap()
3111 lap_msg->alt_local_gid.global.interface_id in cm_format_lap()
3113 lap_msg->alt_remote_gid.global.interface_id in cm_format_lap()
3116 cm_lap_set_flow_label(lap_msg, alternate_path->flow_label); in cm_format_lap()
3117 cm_lap_set_traffic_class(lap_msg, alternate_path->traffic_class); in cm_format_lap()
3118 lap_msg->alt_hop_limit = alternate_path->hop_limit; in cm_format_lap()
3119 cm_lap_set_packet_rate(lap_msg, alternate_path->rate); in cm_format_lap()
3120 cm_lap_set_sl(lap_msg, alternate_path->sl); in cm_format_lap()
3121 cm_lap_set_subnet_local(lap_msg, 1); /* local only... */ in cm_format_lap()
3122 cm_lap_set_local_ack_timeout(lap_msg, in cm_format_lap()
3127 memcpy(lap_msg->private_data, private_data, private_data_len); in cm_format_lap()
3184 static void cm_format_path_lid_from_lap(struct cm_lap_msg *lap_msg, in cm_format_path_lid_from_lap() argument
3190 sa_path_set_dlid(path, ntohs(lap_msg->alt_local_lid)); in cm_format_path_lid_from_lap()
3191 sa_path_set_slid(path, ntohs(lap_msg->alt_remote_lid)); in cm_format_path_lid_from_lap()
3193 lid = opa_get_lid_from_gid(&lap_msg->alt_local_gid); in cm_format_path_lid_from_lap()
3196 lid = opa_get_lid_from_gid(&lap_msg->alt_remote_gid); in cm_format_path_lid_from_lap()
3203 struct cm_lap_msg *lap_msg) in cm_format_path_from_lap() argument
3205 path->dgid = lap_msg->alt_local_gid; in cm_format_path_from_lap()
3206 path->sgid = lap_msg->alt_remote_gid; in cm_format_path_from_lap()
3207 path->flow_label = cm_lap_get_flow_label(lap_msg); in cm_format_path_from_lap()
3208 path->hop_limit = lap_msg->alt_hop_limit; in cm_format_path_from_lap()
3209 path->traffic_class = cm_lap_get_traffic_class(lap_msg); in cm_format_path_from_lap()
3212 path->sl = cm_lap_get_sl(lap_msg); in cm_format_path_from_lap()
3216 path->rate = cm_lap_get_packet_rate(lap_msg); in cm_format_path_from_lap()
3218 path->packet_life_time = cm_lap_get_local_ack_timeout(lap_msg); in cm_format_path_from_lap()
3220 cm_format_path_lid_from_lap(lap_msg, path); in cm_format_path_from_lap()
3226 struct cm_lap_msg *lap_msg; in cm_lap_handler() local
3239 lap_msg = (struct cm_lap_msg *)work->mad_recv_wc->recv_buf.mad; in cm_lap_handler()
3240 cm_id_priv = cm_acquire_id(lap_msg->remote_comm_id, in cm_lap_handler()
3241 lap_msg->local_comm_id); in cm_lap_handler()
3250 &lap_msg->alt_local_gid); in cm_lap_handler()
3252 cm_format_path_from_lap(cm_id_priv, param->alternate_path, lap_msg); in cm_lap_handler()
3253 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()