Lines Matching refs:grh
71 struct ib_grh grh; member
80 struct ib_grh grh; member
87 struct ib_grh grh; member
154 u8 grh[40]; in mlx4_MAD_IFC() member
168 memcpy(ext_info->grh, in_grh, 40); in mlx4_MAD_IFC()
487 static int get_gids_from_l3_hdr(struct ib_grh *grh, union ib_gid *sgid, in get_gids_from_l3_hdr() argument
490 int version = ib_get_rdma_header_version((const union rdma_network_hdr *)grh); in get_gids_from_l3_hdr()
500 return ib_get_gids_from_rdma_hdr((union rdma_network_hdr *)grh, net_type, in get_gids_from_l3_hdr()
513 struct ib_grh *grh, struct ib_mad *mad) in mlx4_ib_send_to_slave() argument
584 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave()
613 if (grh) in mlx4_ib_send_to_slave()
614 memcpy(&tun_mad->grh, grh, sizeof *grh); 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()
683 struct ib_wc *wc, struct ib_grh *grh, in mlx4_ib_demux_mad() argument
701 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad()
718 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad()
734 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
755 if (grh->dgid.global.interface_id == in mlx4_ib_demux_mad()
757 grh->dgid.global.subnet_prefix == cpu_to_be64( in mlx4_ib_demux_mad()
762 grh->dgid.global.interface_id); in mlx4_ib_demux_mad()
814 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
1470 struct ib_global_route *grh = rdma_ah_retrieve_grh(ah_attr); in fill_in_real_sgid_index() local
1472 grh->sgid_index = slave; in fill_in_real_sgid_index()
1474 grh->sgid_index += get_slave_base_gid_ix(dev, slave, port); in fill_in_real_sgid_index()
1903 struct ib_grh *grh; in mlx4_ib_sqp_comp_worker() local
1926 grh = &(((struct mlx4_mad_rcv_buf *) in mlx4_ib_sqp_comp_worker()
1928 (MLX4_NUM_WIRE_BUFS - 1)].addr))->grh); in mlx4_ib_sqp_comp_worker()
1929 mlx4_ib_demux_mad(ctx->ib_dev, ctx->port, &wc, grh, mad); in mlx4_ib_sqp_comp_worker()