Home
last modified time | relevance | path

Searched refs:grh (Results 1 – 25 of 51) sorted by relevance

123

/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c79 struct ocrdma_grh grh; in set_av_attr() local
91 memset(&grh, 0, sizeof(grh)); in set_av_attr()
123 ah->sgid_index = attr->grh.sgid_index; in set_av_attr()
128 attr->grh.traffic_class); in set_av_attr()
132 ipv4.ttl = attr->grh.hop_limit; in set_av_attr()
136 rdma_gid2ip(&dgid_addr._sockaddr, &attr->grh.dgid); in set_av_attr()
140 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
141 grh.tclass_flow = cpu_to_be32((6 << 28) | in set_av_attr()
142 (attr->grh.traffic_class << 24) | in set_av_attr()
143 attr->grh.flow_label); in set_av_attr()
[all …]
/drivers/infiniband/hw/mlx4/
Dah.c53 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah()
54 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
56 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in create_ib_ah()
57 ah_attr->grh.flow_label); in create_ib_ah()
58 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16); in create_ib_ah()
84 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6)); in create_iboe_ah()
92 ah_attr->grh.sgid_index, &sgid, &gid_attr); in create_iboe_ah()
105 ret = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); in create_iboe_ah()
110 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; in create_iboe_ah()
118 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in create_iboe_ah()
[all …]
Dmad.c69 struct ib_grh grh; member
78 struct ib_grh grh; member
85 struct ib_grh grh; member
152 u8 grh[40]; in mlx4_MAD_IFC() member
166 memcpy(ext_info->grh, in_grh, 40); in mlx4_MAD_IFC()
485 struct ib_grh *grh, struct ib_mad *mad) in mlx4_ib_send_to_slave() argument
541 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16); in mlx4_ib_send_to_slave()
569 if (grh) in mlx4_ib_send_to_slave()
570 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave()
576 tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0; in mlx4_ib_send_to_slave()
[all …]
Dqp.c1412 ah->grh.sgid_index); in _mlx4_set_path()
1422 path->hop_limit = ah->grh.hop_limit; in _mlx4_set_path()
1424 cpu_to_be32((ah->grh.traffic_class << 20) | in _mlx4_set_path()
1425 (ah->grh.flow_label)); in _mlx4_set_path()
1426 memcpy(path->rgid, ah->grh.dgid.raw, 16); in _mlx4_set_path()
1776 int index = attr->ah_attr.grh.sgid_index; in __mlx4_ib_modify_qp()
2508 sqp->ud_header.grh.traffic_class = in build_mlx_header()
2510 sqp->ud_header.grh.flow_label = in build_mlx_header()
2512 sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit; in build_mlx_header()
2514 memcpy(sqp->ud_header.grh.source_gid.raw, sgid.raw, 16); in build_mlx_header()
[all …]
/drivers/infiniband/hw/mlx5/
Dah.c41 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); in create_ib_ah()
42 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label | in create_ib_ah()
44 ah_attr->grh.sgid_index << 20); in create_ib_ah()
45 ah->av.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
46 ah->av.tclass = ah_attr->grh.traffic_class; in create_ib_ah()
56 ah_attr->grh.sgid_index); in create_ib_ah()
95 ah_attr->grh.sgid_index = (tmp >> 20) & 0xff; in mlx5_ib_query_ah()
96 ah_attr->grh.flow_label = tmp & 0xfffff; in mlx5_ib_query_ah()
97 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16); in mlx5_ib_query_ah()
98 ah_attr->grh.hop_limit = ah->av.hop_limit; in mlx5_ib_query_ah()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_av.c49 if (attr->grh.sgid_index > port->attr.gid_tbl_len) { in rxe_av_chk_attr()
51 attr->grh.sgid_index); in rxe_av_chk_attr()
63 memcpy(&av->grh, &attr->grh, sizeof(attr->grh)); in rxe_av_from_attr()
71 memcpy(&attr->grh, &av->grh, sizeof(av->grh)); in rxe_av_to_attr()
83 rdma_gid2ip(&av->dgid_addr._sockaddr, &attr->grh.dgid); in rxe_av_fill_ip_info()
Drxe_net.c371 av->grh.traffic_class, av->grh.hop_limit, df, xnet); in prepare4()
395 av->grh.traffic_class, in prepare6()
396 av->grh.hop_limit); in prepare6()
470 return rxe->port.port_guid == av->grh.dgid.global.interface_id; in addr_same()
/drivers/infiniband/hw/hns/
Dhns_roce_ah.c58 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(ah_attr->grh.dgid.raw)); in hns_roce_create_ah()
66 ah_attr->grh.sgid_index, &sgid, &gid_attr); in hns_roce_create_ah()
85 ah->av.gid_index = ah_attr->grh.sgid_index; in hns_roce_create_ah()
93 memcpy(ah->av.dgid, ah_attr->grh.dgid.raw, HNS_ROCE_GID_SIZE); in hns_roce_create_ah()
112 ah_attr->grh.traffic_class = le32_to_cpu(ah->av.sl_tclass_flowlabel) >> in hns_roce_query_ah()
114 ah_attr->grh.flow_label = le32_to_cpu(ah->av.sl_tclass_flowlabel) & in hns_roce_query_ah()
116 ah_attr->grh.hop_limit = ah->av.hop_limit; in hns_roce_query_ah()
117 ah_attr->grh.sgid_index = ah->av.gid_index; in hns_roce_query_ah()
118 memcpy(ah_attr->grh.dgid.raw, ah->av.dgid, HNS_ROCE_GID_SIZE); in hns_roce_query_ah()
/drivers/infiniband/core/
Duverbs_marshall.c39 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); in ib_copy_ah_attr_to_user()
40 dst->grh.flow_label = src->grh.flow_label; in ib_copy_ah_attr_to_user()
41 dst->grh.sgid_index = src->grh.sgid_index; in ib_copy_ah_attr_to_user()
42 dst->grh.hop_limit = src->grh.hop_limit; in ib_copy_ah_attr_to_user()
43 dst->grh.traffic_class = src->grh.traffic_class; in ib_copy_ah_attr_to_user()
44 memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved)); in ib_copy_ah_attr_to_user()
Dud_header.c187 { STRUCT_FIELD(grh, ip_version),
191 { STRUCT_FIELD(grh, traffic_class),
195 { STRUCT_FIELD(grh, flow_label),
199 { STRUCT_FIELD(grh, payload_length),
203 { STRUCT_FIELD(grh, next_header),
207 { STRUCT_FIELD(grh, hop_limit),
211 { STRUCT_FIELD(grh, source_gid),
215 { STRUCT_FIELD(grh, destination_gid),
356 header->grh.ip_version = 6; in ib_ud_header_init()
357 header->grh.payload_length = in ib_ud_header_init()
[all …]
Dverbs.c365 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()
[all …]
Duser_mad.c241 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh, in recv_handler()
244 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; in recv_handler()
245 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; in recv_handler()
246 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; in recv_handler()
247 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); in recv_handler()
248 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); in recv_handler()
498 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); in ib_umad_write()
499 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; in ib_umad_write()
500 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); in ib_umad_write()
501 ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; in ib_umad_write()
[all …]
Duverbs_cmd.c2275 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
2276 resp.dest.flow_label = attr->ah_attr.grh.flow_label; in ib_uverbs_query_qp()
2277 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
2278 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
2279 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
2287 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
2288 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label; in ib_uverbs_query_qp()
2289 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
2290 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
2291 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
[all …]
Dagent.c81 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, in agent_send_response() argument
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
Dmad.c1886 attr.grh.sgid_index, &sgid, NULL)) in rcv_has_same_gid()
1888 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw, in rcv_has_same_gid()
1896 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw, in rcv_has_same_gid()
2054 response->header.recv_wc.recv_buf.grh = &response->grh; in handle_ib_smi()
2057 &response->grh, wc, in handle_ib_smi()
2081 response->header.recv_wc.recv_buf.grh = &response->grh; in generate_unmatched_resp()
2142 response->header.recv_wc.recv_buf.grh = &response->grh; in handle_opa_smi()
2145 &response->grh, wc, in handle_opa_smi()
2230 recv->header.recv_wc.recv_buf.grh = &recv->grh; in ib_mad_recv_done()
2264 wc, &recv->grh, in ib_mad_recv_done()
[all …]
Dagent.h47 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
Dmulticast.c752 ah_attr->grh.dgid = rec->mgid; in ib_init_ah_from_mcmember()
754 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_mcmember()
755 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_mcmember()
756 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_mcmember()
757 ah_attr->grh.traffic_class = rec->traffic_class; in ib_init_ah_from_mcmember()
/drivers/infiniband/hw/mthca/
Dmthca_av.c210 ah_attr->grh.sgid_index; in mthca_create_ah()
211 av->hop_limit = ah_attr->grh.hop_limit; in mthca_create_ah()
213 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in mthca_create_ah()
214 ah_attr->grh.flow_label); in mthca_create_ah()
215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16); in mthca_create_ah()
276 header->grh.traffic_class = in mthca_read_ah()
278 header->grh.flow_label = in mthca_read_ah()
280 header->grh.hop_limit = ah->av->hop_limit; in mthca_read_ah()
284 &header->grh.source_gid, NULL); in mthca_read_ah()
285 memcpy(header->grh.destination_gid.raw, in mthca_read_ah()
[all …]
Dmthca_qp.c413 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1); in to_ib_ah_attr()
414 ib_ah_attr->grh.hop_limit = path->hop_limit; in to_ib_ah_attr()
415 ib_ah_attr->grh.traffic_class = in to_ib_ah_attr()
417 ib_ah_attr->grh.flow_label = in to_ib_ah_attr()
419 memcpy(ib_ah_attr->grh.dgid.raw, in to_ib_ah_attr()
420 path->rgid, sizeof ib_ah_attr->grh.dgid.raw); in to_ib_ah_attr()
523 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { in mthca_path_set()
525 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set()
530 path->mgid_index = ah->grh.sgid_index; in mthca_path_set()
531 path->hop_limit = ah->grh.hop_limit; in mthca_path_set()
[all …]
/drivers/infiniband/hw/qedr/
Dqedr_cm.c256 struct ib_global_route *grh = &ah_attr->grh; in qedr_gsi_build_header() local
273 grh->sgid_index, &sgid, &sgid_attr); in qedr_gsi_build_header()
277 ah_attr->port_num, grh->sgid_index); in qedr_gsi_build_header()
289 ah_attr->grh.sgid_index); in qedr_gsi_build_header()
342 udh->grh.traffic_class = grh->traffic_class; in qedr_gsi_build_header()
343 udh->grh.flow_label = grh->flow_label; in qedr_gsi_build_header()
344 udh->grh.hop_limit = grh->hop_limit; in qedr_gsi_build_header()
345 udh->grh.destination_gid = grh->dgid; in qedr_gsi_build_header()
346 memcpy(&udh->grh.source_gid.raw, &sgid.raw, in qedr_gsi_build_header()
347 sizeof(udh->grh.source_gid.raw)); in qedr_gsi_build_header()
[all …]
/drivers/infiniband/hw/qib/
Dqib_ruc.c281 guid = get_sguid(ibp, qp->alt_ah_attr.grh.sgid_index); in qib_ruc_check_hdr()
282 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr()
285 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr()
286 qp->alt_ah_attr.grh.dgid.global.subnet_prefix, in qib_ruc_check_hdr()
287 qp->alt_ah_attr.grh.dgid.global.interface_id)) in qib_ruc_check_hdr()
314 qp->remote_ah_attr.grh.sgid_index); in qib_ruc_check_hdr()
315 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr()
318 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr()
319 qp->remote_ah_attr.grh.dgid.global.subnet_prefix, in qib_ruc_check_hdr()
320 qp->remote_ah_attr.grh.dgid.global.interface_id)) in qib_ruc_check_hdr()
[all …]
Dqib_ud.c172 struct ib_grh grh; in qib_ud_loopback() local
173 struct ib_global_route grd = ah_attr->grh; in qib_ud_loopback()
175 qib_make_grh(ibp, &grh, &grd, 0, 0); in qib_ud_loopback()
176 qib_copy_sge(&qp->r_sge, &grh, in qib_ud_loopback()
177 sizeof(grh), 1); in qib_ud_loopback()
340 qp->s_hdrwords += qib_make_grh(ibp, &priv->s_hdr->u.l.grh, in qib_make_ud_req()
341 &ah_attr->grh, in qib_make_ud_req()
566 qib_copy_sge(&qp->r_sge, &hdr->u.l.grh, in qib_ud_rcv()
/drivers/infiniband/hw/hfi1/
Druc.c279 guid = get_sguid(ibp, qp->alt_ah_attr.grh.sgid_index); in hfi1_ruc_check_hdr()
280 if (!gid_ok(&hdr->u.l.grh.dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
284 &hdr->u.l.grh.sgid, in hfi1_ruc_check_hdr()
285 qp->alt_ah_attr.grh.dgid.global.subnet_prefix, in hfi1_ruc_check_hdr()
286 qp->alt_ah_attr.grh.dgid.global.interface_id)) in hfi1_ruc_check_hdr()
314 qp->remote_ah_attr.grh.sgid_index); in hfi1_ruc_check_hdr()
315 if (!gid_ok(&hdr->u.l.grh.dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
319 &hdr->u.l.grh.sgid, in hfi1_ruc_check_hdr()
320 qp->remote_ah_attr.grh.dgid.global.subnet_prefix, in hfi1_ruc_check_hdr()
321 qp->remote_ah_attr.grh.dgid.global.interface_id)) in hfi1_ruc_check_hdr()
[all …]
Dud.c187 struct ib_grh grh; in ud_loopback() local
188 struct ib_global_route grd = ah_attr->grh; in ud_loopback()
190 hfi1_make_grh(ibp, &grh, &grd, 0, 0); in ud_loopback()
191 hfi1_copy_sge(&qp->r_sge, &grh, in ud_loopback()
192 sizeof(grh), 1, 0); in ud_loopback()
370 &ps->s_txreq->phdr.hdr.u.l.grh, in hfi1_make_ud_req()
371 &ah_attr->grh, in hfi1_make_ud_req()
520 struct ib_grh *grh = &hdr.u.l.grh; in return_cnp() local
522 grh->version_tclass_flow = old_grh->version_tclass_flow; in return_cnp()
523 grh->paylen = cpu_to_be16((hwords - 2 + SIZE_OF_CRC) << 2); in return_cnp()
[all …]
Ddriver.c308 if (rhdr->u.l.grh.next_hdr != IB_GRH_NEXT_HDR) in rcv_hdrerr()
310 vtf = be32_to_cpu(rhdr->u.l.grh.version_tclass_flow); in rcv_hdrerr()
456 struct ib_grh *grh = NULL; in hfi1_process_ecn_slowpath() local
463 grh = &hdr->u.l.grh; in hfi1_process_ecn_slowpath()
495 return_cnp(ibp, qp, rqpn, pkey, dlid, rlid, sc, grh); in hfi1_process_ecn_slowpath()

123