Lines Matching refs:grh
69 struct ib_grh grh; member
78 struct ib_grh grh; member
85 struct ib_grh grh; member
152 u8 grh[40]; in mlx4_MAD_IFC() member
166 memcpy(ext_info->grh, in_grh, 40); in mlx4_MAD_IFC()
485 struct ib_grh *grh, struct ib_mad *mad) in mlx4_ib_send_to_slave() argument
541 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16); in mlx4_ib_send_to_slave()
569 if (grh) in mlx4_ib_send_to_slave()
570 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave()
576 tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0; in mlx4_ib_send_to_slave()
639 struct ib_wc *wc, struct ib_grh *grh, in mlx4_ib_demux_mad() argument
662 err = mlx4_get_slave_from_roce_gid(dev->dev, port, grh->dgid.raw, &slave); in mlx4_ib_demux_mad()
665 err = mlx4_get_slave_from_roce_gid(dev->dev, other_port, grh->dgid.raw, &slave); in mlx4_ib_demux_mad()
669 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad()
685 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
705 if (grh->dgid.global.interface_id == in mlx4_ib_demux_mad()
707 grh->dgid.global.subnet_prefix == cpu_to_be64( in mlx4_ib_demux_mad()
712 grh->dgid.global.interface_id); in mlx4_ib_demux_mad()
764 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
1367 sgid_index = attr->grh.sgid_index; in mlx4_ib_send_to_wire()
1368 attr->grh.sgid_index = 0; in mlx4_ib_send_to_wire()
1372 attr->grh.sgid_index = sgid_index; in mlx4_ib_send_to_wire()
1448 ah_attr->grh.sgid_index = slave; in fill_in_real_sgid_index()
1450 ah_attr->grh.sgid_index += get_slave_base_gid_ix(dev, slave, port); in fill_in_real_sgid_index()
1867 struct ib_grh *grh; in mlx4_ib_sqp_comp_worker() local
1890 grh = &(((struct mlx4_mad_rcv_buf *) in mlx4_ib_sqp_comp_worker()
1892 (MLX4_NUM_TUNNEL_BUFS - 1)].addr))->grh); in mlx4_ib_sqp_comp_worker()
1893 mlx4_ib_demux_mad(ctx->ib_dev, ctx->port, &wc, grh, mad); in mlx4_ib_sqp_comp_worker()