Lines Matching refs:grh
365 const struct ib_grh *grh) in ib_get_net_type_by_grh() argument
372 grh_version = ib_get_header_version((union rdma_network_hdr *)grh); in ib_get_net_type_by_grh()
377 if (grh->next_hdr == IPPROTO_UDP) in ib_get_net_type_by_grh()
452 const struct ib_wc *wc, const struct ib_grh *grh, in ib_init_ah_from_wc() argument
469 net_type = ib_get_net_type_by_grh(device, port_num, grh); in ib_init_ah_from_wc()
472 ret = get_gids_from_rdma_hdr((union rdma_network_hdr *)grh, net_type, in ib_init_ah_from_wc()
533 ah_attr->grh.dgid = sgid; in ib_init_ah_from_wc()
548 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_wc()
549 flow_class = be32_to_cpu(grh->version_tclass_flow); in ib_init_ah_from_wc()
550 ah_attr->grh.flow_label = flow_class & 0xFFFFF; in ib_init_ah_from_wc()
551 ah_attr->grh.hop_limit = hoplimit; in ib_init_ah_from_wc()
552 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF; in ib_init_ah_from_wc()
559 const struct ib_grh *grh, u8 port_num) in ib_create_ah_from_wc() argument
564 ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr); in ib_create_ah_from_wc()
1212 if (rdma_link_local_addr((struct in6_addr *)qp_attr->ah_attr.grh.dgid.raw)) { in ib_resolve_eth_dmac()
1213 rdma_get_ll_mac((struct in6_addr *)qp_attr->ah_attr.grh.dgid.raw, in ib_resolve_eth_dmac()
1223 qp_attr->ah_attr.grh.sgid_index, in ib_resolve_eth_dmac()
1235 &qp_attr->ah_attr.grh.dgid, in ib_resolve_eth_dmac()
1241 qp_attr->ah_attr.grh.hop_limit = hop_limit; in ib_resolve_eth_dmac()