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

12

/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c39 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6);
61 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16);
62 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label |
64 ah_attr->grh.sgid_index << 20);
65 ah->av.hop_limit = ah_attr->grh.hop_limit;
66 ah->av.tclass = ah_attr->grh.traffic_class;
73 ah_attr->grh.sgid_index,
82 ah_attr->grh.sgid_index,
85 ah->av.hop_limit = ah_attr->grh.hop_limit;
129 ah_attr->grh
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/core/
H A Dagent.h47 extern void agent_send_response(struct ib_mad *mad, struct ib_grh *grh,
H A Dud_header.c119 { STRUCT_FIELD(grh, ip_version),
123 { STRUCT_FIELD(grh, traffic_class),
127 { STRUCT_FIELD(grh, flow_label),
131 { STRUCT_FIELD(grh, payload_length),
135 { STRUCT_FIELD(grh, next_header),
139 { STRUCT_FIELD(grh, hop_limit),
143 { STRUCT_FIELD(grh, source_gid),
147 { STRUCT_FIELD(grh, destination_gid),
259 header->grh.ip_version = 6;
260 header->grh
[all...]
H A Duverbs_marshall.c38 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
39 dst->grh.flow_label = src->grh.flow_label;
40 dst->grh.sgid_index = src->grh.sgid_index;
41 dst->grh.hop_limit = src->grh.hop_limit;
42 dst->grh
[all...]
H A Dagent.c81 void agent_send_response(struct ib_mad *mad, struct ib_grh *grh, argument
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
H A Duverbs_cmd.c1249 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16);
1250 resp.dest.flow_label = attr->ah_attr.grh.flow_label;
1251 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index;
1252 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit;
1253 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class;
1261 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16);
1262 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label;
1263 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index;
1264 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit;
1265 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh
[all...]
H A Dverbs.c160 struct ib_grh *grh, struct ib_ah_attr *ah_attr)
174 ah_attr->grh.dgid = grh->sgid;
176 ret = ib_find_cached_gid(device, &grh->dgid, &port_num,
181 ah_attr->grh.sgid_index = (u8) gid_index;
182 flow_class = be32_to_cpu(grh->version_tclass_flow);
183 ah_attr->grh.flow_label = flow_class & 0xFFFFF;
184 ah_attr->grh.hop_limit = 0xFF;
185 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF;
192 struct ib_grh *grh, u
159 ib_init_ah_from_wc(struct ib_device *device, u8 port_num, struct ib_wc *wc, struct ib_grh *grh, struct ib_ah_attr *ah_attr) argument
191 ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, struct ib_grh *grh, u8 port_num) argument
[all...]
H A Duser_mad.c243 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh,
246 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index;
247 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit;
248 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class;
249 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16);
250 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label);
497 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16);
498 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index;
499 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label);
500 ah_attr.grh
[all...]
H A Dmad_priv.h81 struct ib_grh grh; member in struct:ib_mad_private
H A Dmad.c1745 attr.grh.sgid_index, &sgid))
1747 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw,
1755 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw,
1890 recv->header.recv_wc.recv_buf.grh = &recv->grh;
1939 response->header.recv_wc.recv_buf.grh = &response->grh;
1942 &response->grh, wc,
1958 wc, &recv->grh,
[all...]
H A Dmulticast.c710 ah_attr->grh.dgid = rec->mgid;
712 ah_attr->grh.sgid_index = (u8) gid_index;
713 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
714 ah_attr->grh.hop_limit = rec->hop_limit;
715 ah_attr->grh.traffic_class = rec->traffic_class;
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dah.c52 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6);
73 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
74 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
76 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
77 ah_attr->grh.flow_label);
78 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
109 err = ib_get_cached_gid(pd->device, ah_attr->port_num, ah_attr->grh.sgid_index, &sgid);
116 ah->av.eth.gid_index = ah_attr->grh.sgid_index;
131 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16);
186 ah_attr->grh
[all...]
H A Dmad.c68 struct ib_grh grh; member in struct:mlx4_mad_rcv_buf
77 struct ib_grh grh; member in struct:mlx4_tunnel_mad
84 struct ib_grh grh; member in struct:mlx4_rcv_tunnel_mad
150 u8 grh[40]; member in struct:__anon2031
164 memcpy(ext_info->grh, in_grh, 40);
455 struct ib_grh *grh, struct ib_mad *mad)
514 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16);
542 if (grh)
543 memcpy(&tun_mad->grh, gr
453 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
580 mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument
1810 struct ib_grh *grh; local
[all...]
H A Dqp.c1590 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) {
1592 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1);
1597 path->mgid_index = ah->grh.sgid_index;
1598 path->hop_limit = ah->grh.hop_limit;
1600 cpu_to_be32((ah->grh.traffic_class << 20) |
1601 (ah->grh.flow_label));
1602 memcpy(path->rgid, ah->grh.dgid.raw, 16);
1617 vlan_tag = rdma_get_vlan_id(&dev->iboe.gid_table[port - 1][ah->grh.sgid_index]);
2513 sqp->ud_header.grh.traffic_class =
2515 sqp->ud_header.grh
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/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);
285 memcpy(header->grh
[all...]
H A Dmthca_qp.c416 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1);
417 ib_ah_attr->grh.hop_limit = path->hop_limit;
418 ib_ah_attr->grh.traffic_class =
420 ib_ah_attr->grh.flow_label =
422 memcpy(ib_ah_attr->grh.dgid.raw,
423 path->rgid, sizeof ib_ah_attr->grh.dgid.raw);
529 if (ah->grh.sgid_index >= dev->limits.gid_table_len) {
531 ah->grh.sgid_index, dev->limits.gid_table_len-1);
536 path->mgid_index = ah->grh.sgid_index;
537 path->hop_limit = ah->grh
[all...]
/freebsd-10-stable/contrib/ofed/libibverbs/src/
H A Dmarshall.c44 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid);
45 dst->grh.flow_label = src->grh.flow_label;
46 dst->grh.sgid_index = src->grh.sgid_index;
47 dst->grh.hop_limit = src->grh.hop_limit;
48 dst->grh
[all...]
H A Dcmd.c727 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16);
728 attr->ah_attr.grh.flow_label = resp.dest.flow_label;
730 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index;
731 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit;
732 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class;
739 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16);
740 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label;
742 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index;
743 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit;
744 attr->alt_ah_attr.grh
[all...]
H A Dverbs.c518 struct ibv_wc *wc, struct ibv_grh *grh,
532 ah_attr->grh.dgid = grh->sgid;
534 ret = ibv_find_gid_index(context, port_num, &grh->dgid);
538 ah_attr->grh.sgid_index = (uint8_t) ret;
539 flow_class = ntohl(grh->version_tclass_flow);
540 ah_attr->grh.flow_label = flow_class & 0xFFFFF;
541 ah_attr->grh.hop_limit = grh->hop_limit;
542 ah_attr->grh
517 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
547 ibv_create_ah_from_wc(struct ibv_pd *pd, struct ibv_wc *wc, struct ibv_grh *grh, uint8_t port_num) argument
[all...]
/freebsd-10-stable/contrib/ofed/libmthca/src/
H A Dah.c147 attr->grh.sgid_index;
148 ah->av->hop_limit = attr->grh.hop_limit;
150 htonl((attr->grh.traffic_class << 20) |
151 attr->grh.flow_label);
152 memcpy(ah->av->dgid, attr->grh.dgid.raw, 16);
/freebsd-10-stable/contrib/ofed/management/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.c122 ib_grh_set_ver_class_flow(p_rcv_desc->grh.
124 p_rcv_desc->grh.
126 p_rcv_desc->grh.
129 p_rcv_desc->grh.hop_limit;
131 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t));
133 p_rcv_desc->grh.dgid, sizeof(ib_net64_t));
/freebsd-10-stable/contrib/ofed/libmlx4/src/
H A Dverbs.c703 ah->av.gid_index = attr->grh.sgid_index;
704 ah->av.hop_limit = attr->grh.hop_limit;
706 htonl((attr->grh.traffic_class << 20) |
707 attr->grh.flow_label);
708 memcpy(ah->av.dgid, attr->grh.dgid.raw, 16);
717 attr->grh.sgid_index,
/freebsd-10-stable/contrib/ofed/libibverbs/examples/
H A Drc_pingpong.c102 attr.ah_attr.grh.hop_limit = 1;
103 attr.ah_attr.grh.dgid = dest->gid;
104 attr.ah_attr.grh.sgid_index = sgid_idx;
H A Duc_pingpong.c99 attr.ah_attr.grh.hop_limit = 1;
100 attr.ah_attr.grh.dgid = dest->gid;
101 attr.ah_attr.grh.sgid_index = sgid_idx;

Completed in 233 milliseconds

12