• Home
  • Raw
  • Download

Lines Matching refs:lap_msg

2572 static void cm_format_lap(struct cm_lap_msg *lap_msg,  in cm_format_lap()  argument
2578 cm_format_mad_hdr(&lap_msg->hdr, CM_LAP_ATTR_ID, in cm_format_lap()
2580 lap_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_lap()
2581 lap_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_lap()
2582 cm_lap_set_remote_qpn(lap_msg, cm_id_priv->remote_qpn); in cm_format_lap()
2584 cm_lap_set_remote_resp_timeout(lap_msg, 0x1F); in cm_format_lap()
2585 lap_msg->alt_local_lid = alternate_path->slid; in cm_format_lap()
2586 lap_msg->alt_remote_lid = alternate_path->dlid; in cm_format_lap()
2587 lap_msg->alt_local_gid = alternate_path->sgid; in cm_format_lap()
2588 lap_msg->alt_remote_gid = alternate_path->dgid; in cm_format_lap()
2589 cm_lap_set_flow_label(lap_msg, alternate_path->flow_label); in cm_format_lap()
2590 cm_lap_set_traffic_class(lap_msg, alternate_path->traffic_class); in cm_format_lap()
2591 lap_msg->alt_hop_limit = alternate_path->hop_limit; in cm_format_lap()
2592 cm_lap_set_packet_rate(lap_msg, alternate_path->rate); in cm_format_lap()
2593 cm_lap_set_sl(lap_msg, alternate_path->sl); in cm_format_lap()
2594 cm_lap_set_subnet_local(lap_msg, 1); /* local only... */ in cm_format_lap()
2595 cm_lap_set_local_ack_timeout(lap_msg, in cm_format_lap()
2600 memcpy(lap_msg->private_data, private_data, private_data_len); in cm_format_lap()
2658 struct cm_lap_msg *lap_msg) in cm_format_path_from_lap() argument
2661 path->dgid = lap_msg->alt_local_gid; in cm_format_path_from_lap()
2662 path->sgid = lap_msg->alt_remote_gid; in cm_format_path_from_lap()
2663 path->dlid = lap_msg->alt_local_lid; in cm_format_path_from_lap()
2664 path->slid = lap_msg->alt_remote_lid; in cm_format_path_from_lap()
2665 path->flow_label = cm_lap_get_flow_label(lap_msg); in cm_format_path_from_lap()
2666 path->hop_limit = lap_msg->alt_hop_limit; in cm_format_path_from_lap()
2667 path->traffic_class = cm_lap_get_traffic_class(lap_msg); in cm_format_path_from_lap()
2670 path->sl = cm_lap_get_sl(lap_msg); in cm_format_path_from_lap()
2674 path->rate = cm_lap_get_packet_rate(lap_msg); in cm_format_path_from_lap()
2676 path->packet_life_time = cm_lap_get_local_ack_timeout(lap_msg); in cm_format_path_from_lap()
2683 struct cm_lap_msg *lap_msg; in cm_lap_handler() local
2689 lap_msg = (struct cm_lap_msg *)work->mad_recv_wc->recv_buf.mad; in cm_lap_handler()
2690 cm_id_priv = cm_acquire_id(lap_msg->remote_comm_id, in cm_lap_handler()
2691 lap_msg->local_comm_id); in cm_lap_handler()
2697 cm_format_path_from_lap(cm_id_priv, param->alternate_path, lap_msg); in cm_lap_handler()
2698 work->cm_event.private_data = &lap_msg->private_data; in cm_lap_handler()
2733 cm_id_priv->tid = lap_msg->hdr.tid; in cm_lap_handler()