Searched refs:tun_mad (Results 1 – 1 of 1) sorted by relevance
491 struct mlx4_rcv_tunnel_mad *tun_mad; in mlx4_ib_send_to_slave() local558 tun_mad = (struct mlx4_rcv_tunnel_mad *) (tun_qp->tx_ring[tun_tx_ix].buf.addr); in mlx4_ib_send_to_slave()569 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave()570 memcpy(&tun_mad->mad, mad, sizeof *mad); in mlx4_ib_send_to_slave()573 tun_mad->hdr.pkey_index = cpu_to_be16(tun_pkey_ix); in mlx4_ib_send_to_slave()574 tun_mad->hdr.flags_src_qp = cpu_to_be32(wc->src_qp & 0xFFFFFF); in mlx4_ib_send_to_slave()575 tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0; in mlx4_ib_send_to_slave()598 tun_mad->hdr.sl_vid = cpu_to_be16(vlan); in mlx4_ib_send_to_slave()599 memcpy((char *)&tun_mad->hdr.mac_31_0, &(wc->smac[0]), 4); in mlx4_ib_send_to_slave()600 memcpy((char *)&tun_mad->hdr.slid_mac_47_32, &(wc->smac[4]), 2); in mlx4_ib_send_to_slave()[all …]