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

12

/freebsd-9.3-release/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.c1246 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16);
1247 resp.dest.flow_label = attr->ah_attr.grh.flow_label;
1248 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index;
1249 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit;
1250 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class;
1258 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16);
1259 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label;
1260 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index;
1261 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit;
1262 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.c244 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh,
247 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index;
248 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit;
249 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class;
250 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16);
251 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label);
498 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16);
499 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index;
500 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label);
501 ah_attr.grh
[all...]
H A Dmad_priv.h81 struct ib_grh grh; member in struct:ib_mad_private
H A Dmad.c1742 attr.grh.sgid_index, &sgid))
1744 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw,
1752 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw,
1887 recv->header.recv_wc.recv_buf.grh = &recv->grh;
1936 response->header.recv_wc.recv_buf.grh = &response->grh;
1939 &response->grh, wc,
1955 wc, &recv->grh,
[all...]
H A Dmulticast.c708 ah_attr->grh.dgid = rec->mgid;
710 ah_attr->grh.sgid_index = (u8) gid_index;
711 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
712 ah_attr->grh.hop_limit = rec->hop_limit;
713 ah_attr->grh.traffic_class = rec->traffic_class;
/freebsd-9.3-release/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dah.c53 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6);
74 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
75 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
77 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
78 ah_attr->grh.flow_label);
79 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
110 err = ib_get_cached_gid(pd->device, ah_attr->port_num, ah_attr->grh.sgid_index, &sgid);
117 ah->av.eth.gid_index = ah_attr->grh.sgid_index;
132 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16);
188 ah_attr->grh
[all...]
H A Dqp.c1010 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) {
1012 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1);
1017 path->mgid_index = ah->grh.sgid_index;
1018 path->hop_limit = ah->grh.hop_limit;
1020 cpu_to_be32((ah->grh.traffic_class << 20) |
1021 (ah->grh.flow_label));
1022 memcpy(path->rgid, ah->grh.dgid.raw, 16);
1041 vlan_tag = rdma_get_vlan_id(&dev->iboe.gid_table[port - 1][ah->grh.sgid_index]);
1543 sqp->ud_header.grh.traffic_class =
1545 sqp->ud_header.grh
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/sys/contrib/rdma/
H A Drdma_verbs.c146 struct ib_grh *grh, struct ib_ah_attr *ah_attr)
160 ah_attr->grh.dgid = grh->sgid;
162 ret = ib_find_cached_gid(device, &grh->dgid, &port_num,
167 ah_attr->grh.sgid_index = (u8) gid_index;
168 flow_class = be32toh(grh->version_tclass_flow);
169 ah_attr->grh.flow_label = flow_class & 0xFFFFF;
170 ah_attr->grh.hop_limit = 0xFF;
171 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF;
177 struct ib_grh *grh, u
145 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
176 ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, struct ib_grh *grh, u8 port_num) argument
[all...]
/freebsd-9.3-release/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-9.3-release/contrib/ofed/libmlx4/src/
H A Dverbs.c699 ah->av.gid_index = attr->grh.sgid_index;
700 ah->av.hop_limit = attr->grh.hop_limit;
702 htonl((attr->grh.traffic_class << 20) |
703 attr->grh.flow_label);
704 memcpy(ah->av.dgid, attr->grh.dgid.raw, 16);
713 attr->grh.sgid_index,
/freebsd-9.3-release/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;
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 161 milliseconds

12