Home
last modified time | relevance | path

Searched refs:tun_mad (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c520 struct mlx4_rcv_tunnel_mad *tun_mad; in mlx4_ib_send_to_slave() local
614 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave()
615 memcpy(&tun_mad->mad, mad, sizeof *mad); in mlx4_ib_send_to_slave()
618 tun_mad->hdr.pkey_index = cpu_to_be16(tun_pkey_ix); in mlx4_ib_send_to_slave()
619 tun_mad->hdr.flags_src_qp = cpu_to_be32(wc->src_qp & 0xFFFFFF); in mlx4_ib_send_to_slave()
620 tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0; in mlx4_ib_send_to_slave()
641 tun_mad->hdr.sl_vid = cpu_to_be16(vlan); in mlx4_ib_send_to_slave()
642 memcpy((char *)&tun_mad->hdr.mac_31_0, &(wc->smac[0]), 4); in mlx4_ib_send_to_slave()
643 memcpy((char *)&tun_mad->hdr.slid_mac_47_32, &(wc->smac[4]), 2); in mlx4_ib_send_to_slave()
645 tun_mad->hdr.sl_vid = cpu_to_be16(((u16)(wc->sl)) << 12); in mlx4_ib_send_to_slave()
[all …]