Searched refs:grh (Results 1 - 25 of 48) sorted by relevance

12

/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c36 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16);
37 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label |
39 ah_attr->grh.sgid_index << 20);
40 ah->av.hop_limit = ah_attr->grh.hop_limit;
41 ah->av.tclass = ah_attr->grh.traffic_class;
51 ah_attr->grh.sgid_index);
113 ah_attr->grh.sgid_index = (tmp >> 20) & 0xff;
114 ah_attr->grh.flow_label = tmp & 0xfffff;
115 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16);
116 ah_attr->grh
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dagent.h49 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
H A Dib_uverbs_marshall.c43 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
44 dst->grh.flow_label = src->grh.flow_label;
45 dst->grh.sgid_index = src->grh.sgid_index;
46 dst->grh.hop_limit = src->grh.hop_limit;
47 dst->grh
[all...]
H A Dib_ud_header.c192 { STRUCT_FIELD(grh, ip_version),
196 { STRUCT_FIELD(grh, traffic_class),
200 { STRUCT_FIELD(grh, flow_label),
204 { STRUCT_FIELD(grh, payload_length),
208 { STRUCT_FIELD(grh, next_header),
212 { STRUCT_FIELD(grh, hop_limit),
216 { STRUCT_FIELD(grh, source_gid),
220 { STRUCT_FIELD(grh, destination_gid),
365 header->grh.ip_version = 6;
366 header->grh
[all...]
H A Dib_agent.c85 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, argument
106 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
H A Dib_verbs.c394 const struct ib_grh *grh)
401 grh_version = ib_get_header_version((const union rdma_network_hdr *)grh);
406 if (grh->next_hdr == IPPROTO_UDP)
491 const struct ib_wc *wc, const struct ib_grh *grh,
508 net_type = ib_get_net_type_by_grh(device, port_num, grh);
511 ret = get_gids_from_rdma_hdr((const union rdma_network_hdr *)grh, net_type,
551 ah_attr->grh.dgid = sgid;
564 ah_attr->grh.sgid_index = (u8) gid_index;
565 flow_class = be32_to_cpu(grh->version_tclass_flow);
566 ah_attr->grh
392 ib_get_net_type_by_grh(struct ib_device *device, u8 port_num, const struct ib_grh *grh) argument
490 ib_init_ah_from_wc(struct ib_device *device, u8 port_num, const struct ib_wc *wc, const struct ib_grh *grh, struct ib_ah_attr *ah_attr) argument
574 ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, const struct ib_grh *grh, u8 port_num) argument
[all...]
H A Dib_user_mad.c246 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh,
251 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index;
252 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit;
253 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class;
254 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16);
255 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label);
505 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16);
506 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index;
507 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label);
508 ah_attr.grh
[all...]
H A Dmad_priv.h83 struct ib_grh grh; member in struct:ib_mad_private
H A Dib_uverbs_cmd.c2290 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16);
2291 resp.dest.flow_label = attr->ah_attr.grh.flow_label;
2292 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index;
2293 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit;
2294 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class;
2302 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16);
2303 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label;
2304 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index;
2305 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit;
2306 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh
[all...]
H A Dib_sa_query.c534 ah_attr.grh.dgid.global.subnet_prefix = cpu_to_be64(port_attr.subnet_prefix);
535 ah_attr.grh.dgid.global.interface_id = cpu_to_be64(IB_SA_WELL_KNOWN_GUID);
720 ah_attr->grh.dgid = rec->dgid;
731 ah_attr->grh.sgid_index = gid_index;
732 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
733 ah_attr->grh.hop_limit = rec->hop_limit;
734 ah_attr->grh.traffic_class = rec->traffic_class;
H A Dib_multicast.c755 ah_attr->grh.dgid = rec->mgid;
757 ah_attr->grh.sgid_index = (u8) gid_index;
758 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
759 ah_attr->grh.hop_limit = rec->hop_limit;
760 ah_attr->grh.traffic_class = rec->traffic_class;
H A Dib_mad.c1893 attr.grh.sgid_index, &sgid, NULL))
1895 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw,
1903 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw,
2061 response->header.recv_wc.recv_buf.grh = &response->grh;
2064 &response->grh, wc,
2088 response->header.recv_wc.recv_buf.grh = &response->grh;
2149 response->header.recv_wc.recv_buf.grh
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c55 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
56 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
58 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
59 ah_attr->grh.flow_label);
60 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
86 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6));
94 ah_attr->grh.sgid_index, &sgid, &gid_attr);
106 ret = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid_index);
111 ah->av.eth.hop_limit = ah_attr->grh.hop_limit;
125 memcpy(ah->av.eth.dgid, ah_attr->grh
[all...]
H A Dmlx4_ib_mad.c69 struct ib_grh grh; member in struct:mlx4_mad_rcv_buf
78 struct ib_grh grh; member in struct:mlx4_tunnel_mad
85 struct ib_grh grh; member in struct:mlx4_rcv_tunnel_mad
152 u8 grh[40]; member in struct:__anon6818
166 memcpy(ext_info->grh, in_grh, 40);
484 struct ib_grh *grh, struct ib_mad *mad)
540 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16);
568 if (grh)
569 memcpy(&tun_mad->grh, gr
482 mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument
639 mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument
1863 struct ib_grh *grh; local
[all...]
H A Dmlx4_ib_qp.c1413 ah->grh.sgid_index);
1423 path->hop_limit = ah->grh.hop_limit;
1425 cpu_to_be32((ah->grh.traffic_class << 20) |
1426 (ah->grh.flow_label));
1427 memcpy(path->rgid, ah->grh.dgid.raw, 16);
1777 int index = attr->ah_attr.grh.sgid_index;
2509 sqp->ud_header.grh.traffic_class =
2511 sqp->ud_header.grh.flow_label =
2513 sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit;
2515 memcpy(sqp->ud_header.grh
[all...]
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_av.c210 ah_attr->grh.sgid_index;
211 av->hop_limit = ah_attr->grh.hop_limit;
213 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
214 ah_attr->grh.flow_label);
215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16);
276 header->grh.traffic_class =
278 header->grh.flow_label =
280 header->grh.hop_limit = ah->av->hop_limit;
284 &header->grh.source_gid, NULL);
285 memcpy(header->grh
[all...]
H A Dmthca_qp.c413 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1);
414 ib_ah_attr->grh.hop_limit = path->hop_limit;
415 ib_ah_attr->grh.traffic_class =
417 ib_ah_attr->grh.flow_label =
419 memcpy(ib_ah_attr->grh.dgid.raw,
420 path->rgid, sizeof ib_ah_attr->grh.dgid.raw);
523 if (ah->grh.sgid_index >= dev->limits.gid_table_len) {
525 ah->grh.sgid_index, dev->limits.gid_table_len-1);
530 path->mgid_index = ah->grh.sgid_index;
531 path->hop_limit = ah->grh
[all...]
/freebsd-11-stable/contrib/ofed/libibverbs/
H A Dmarshall.c42 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid);
43 dst->grh.flow_label = src->grh.flow_label;
44 dst->grh.sgid_index = src->grh.sgid_index;
45 dst->grh.hop_limit = src->grh.hop_limit;
46 dst->grh
[all...]
H A Dverbs.c745 static inline int get_grh_header_version(struct ibv_grh *grh) argument
747 int ip6h_version = (be32toh(grh->version_tclass_flow) >> 28) & 0xf;
748 struct ip *ip4h = (struct ip *)((void *)grh + 20);
779 struct ibv_grh *grh,
784 flow_class = be32toh(grh->version_tclass_flow);
785 ah_attr->grh.flow_label = flow_class & 0xFFFFF;
812 (struct in6_addr *)&ah_attr->grh.dgid);
813 ah_attr->grh.sgid_index = (uint8_t) ret;
814 ah_attr->grh.hop_limit = ip4h->ip_ttl;
815 ah_attr->grh
777 set_ah_attr_generic_fields(struct ibv_ah_attr *ah_attr, struct ibv_wc *wc, struct ibv_grh *grh, uint8_t port_num) argument
821 set_ah_attr_by_ipv6(struct ibv_context *context, struct ibv_ah_attr *ah_attr, struct ibv_grh *grh, uint8_t port_num) argument
858 ibv_init_ah_from_wc(struct ibv_context *context, uint8_t port_num, struct ibv_wc *wc, struct ibv_grh *grh, struct ibv_ah_attr *ah_attr) argument
886 ibv_create_ah_from_wc(struct ibv_pd *pd, struct ibv_wc *wc, struct ibv_grh *grh, uint8_t port_num) argument
[all...]
H A Dcmd.c1195 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16);
1196 attr->ah_attr.grh.flow_label = resp.dest.flow_label;
1198 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index;
1199 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit;
1200 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class;
1207 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16);
1208 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label;
1210 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index;
1211 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit;
1212 attr->alt_ah_attr.grh
[all...]
/freebsd-11-stable/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_mlx_ibmgt.c701 /* Clear the grh any way to avoid unset fields */
730 ib_grh_set_ver_class_flow(p_rcv_desc->grh.
732 p_rcv_desc->grh.
734 p_rcv_desc->grh.
737 p_rcv_desc->grh.hop_limit;
739 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t));
741 p_rcv_desc->grh.dgid, sizeof(ib_net64_t));
H A Dosm_vendor_mtl.c121 ib_grh_set_ver_class_flow(p_rcv_desc->grh.
123 p_rcv_desc->grh.
125 p_rcv_desc->grh.
128 p_rcv_desc->grh.hop_limit;
130 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t));
132 p_rcv_desc->grh.dgid, sizeof(ib_net64_t));
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dverbs.c1154 if (link_local_gid(&attr->grh.dgid)) {
1155 memcpy(ah->mac, &attr->grh.dgid.raw[8], 3);
1156 memcpy(ah->mac + 3, &attr->grh.dgid.raw[13], 3);
1159 vid = get_vlan_id(&attr->grh.dgid);
1160 } else if (is_multicast_gid(&attr->grh.dgid)) {
1164 ah->mac[i] = attr->grh.dgid.raw[i + 10];
1167 attr->grh.sgid_index, &sgid);
1215 ah->av.gid_index = attr->grh.sgid_index;
1216 ah->av.hop_limit = attr->grh.hop_limit;
1218 htobe32((attr->grh
[all...]
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_hdrs.h122 struct ib_grh grh; member in struct:ib_header::__anon8282::__anon8283
/freebsd-11-stable/contrib/ofed/libibverbs/examples/
H A Dud_pingpong.c111 ah_attr.grh.hop_limit = 1;
112 ah_attr.grh.dgid = dest->gid;
113 ah_attr.grh.sgid_index = sgid_idx;

Completed in 383 milliseconds

12