/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid)); in ib_copy_ah_attr_to_user() 139 memcpy(dst->dgid, src->dgid.raw, sizeof(src->dgid)); in __ib_copy_path_rec_to_user() 182 (ib_is_opa_gid((union ib_gid *)src->dgid))) { in ib_copy_path_rec_from_user() 185 dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); in ib_copy_path_rec_from_user() 191 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ib_copy_path_rec_from_user()
|
H A D | lag.c | 23 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); in rdma_build_skb() 53 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, in rdma_build_skb() 65 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, in rdma_build_skb()
|
H A D | addr.c | 730 } sgid, dgid; in roce_resolve_route_from_path() local 740 rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); in roce_resolve_route_from_path() 742 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path() 751 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path() 816 const union ib_gid *dgid, in rdma_addr_find_l2_eth_by_grh() argument 829 rdma_gid2ip((struct sockaddr *)&dgid_addr, dgid); in rdma_addr_find_l2_eth_by_grh()
|
H A D | verbs.c | 713 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument 719 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr() 732 (struct in6_addr *)dgid); in ib_get_gids_from_rdma_hdr() 736 *dgid = hdr->ibgrh.dgid; in ib_get_gids_from_rdma_hdr() 762 rdma_get_ll_mac((struct in6_addr *)grh->dgid.raw, in ib_resolve_unicast_gid_dmac() 797 union ib_gid dgid; in ib_init_ah_attr_from_wc() local 812 &sgid, &dgid); in ib_init_ah_attr_from_wc() 827 vlan_id, &dgid, in ib_init_ah_attr_from_wc() 852 if (dgid.global.interface_id != in ib_init_ah_attr_from_wc() 855 device, &dgid, IB_GID_TYPE_IB, port_num, NULL); in ib_init_ah_attr_from_wc() [all …]
|
/openbmc/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_av.c | 79 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); in rxe_av_from_attr() 93 memcpy(grh->dgid.raw, av->grh.dgid.raw, sizeof(av->grh.dgid.raw)); in rxe_av_to_attr() 111 &rdma_ah_read_grh(attr)->dgid); in rxe_av_fill_ip_info()
|
H A D | rxe_recv.c | 196 union ib_gid dgid; in rxe_rcv_mcast_pkt() local 201 (struct in6_addr *)&dgid); in rxe_rcv_mcast_pkt() 203 memcpy(&dgid, &ipv6_hdr(skb)->daddr, sizeof(dgid)); in rxe_rcv_mcast_pkt() 206 mcg = rxe_lookup_mcg(rxe, &dgid); in rxe_rcv_mcast_pkt() 288 union ib_gid dgid; in rxe_chk_dgid() local 296 (struct in6_addr *)&dgid); in rxe_chk_dgid() 297 pdgid = &dgid; in rxe_chk_dgid()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_ruc.c | 101 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr() 105 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr() 106 grh->dgid.global.interface_id)) in qib_ruc_check_hdr() 140 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr() 144 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr() 145 grh->dgid.global.interface_id)) in qib_ruc_check_hdr() 200 hdr->dgid = grh->dgid; in qib_make_grh()
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah() 89 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in create_iboe_ah() 138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah() 230 rdma_ah_set_dgid_raw(ah_attr, ah->av.ib.dgid); in mlx4_ib_query_ah()
|
H A D | mad.c | 488 union ib_gid *dgid) in get_gids_from_l3_hdr() argument 501 sgid, dgid); in get_gids_from_l3_hdr() 582 union ib_gid dgid; in mlx4_ib_send_to_slave() local 584 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave() 586 rdma_ah_set_grh(&attr, &dgid, 0, 0, 0, 0); in mlx4_ib_send_to_slave() 698 union ib_gid dgid; in mlx4_ib_demux_mad() local 701 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad() 718 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad() 755 if (grh->dgid.global.interface_id == in mlx4_ib_demux_mad() 757 grh->dgid.global.subnet_prefix == cpu_to_be64( in mlx4_ib_demux_mad() [all …]
|
/openbmc/linux/include/rdma/ |
H A D | ib_sa.h | 164 union ib_gid dgid; member 226 ib->dgid.global.interface_id in path_conv_opa_to_ib() 228 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib() 229 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib() 232 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib() 233 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib() 251 (ib_is_opa_gid(&ib->dgid))) { in path_conv_ib_to_opa() 253 dlid = htonl(opa_get_lid_from_gid(&ib->dgid)); in path_conv_ib_to_opa()
|
H A D | ib_addr.h | 234 static inline u16 rdma_get_vlan_id(union ib_gid *dgid) in rdma_get_vlan_id() argument 238 vid = dgid->raw[11] << 8 | dgid->raw[12]; in rdma_get_vlan_id()
|
H A D | ib_verbs.h | 780 union ib_gid dgid; member 793 union ib_gid dgid; member 3565 union ib_gid *sgid, union ib_gid *dgid); 4589 static inline void rdma_ah_set_dgid_raw(struct rdma_ah_attr *attr, void *dgid) in rdma_ah_set_dgid_raw() argument 4593 memcpy(grh->dgid.raw, dgid, sizeof(grh->dgid)); in rdma_ah_set_dgid_raw() 4601 grh->dgid.global.subnet_prefix = prefix; in rdma_ah_set_subnet_prefix() 4609 grh->dgid.global.interface_id = if_id; in rdma_ah_set_interface_id() 4613 union ib_gid *dgid, u32 flow_label, in rdma_ah_set_grh() argument 4620 if (dgid) in rdma_ah_set_grh() 4621 grh->dgid = *dgid; in rdma_ah_set_grh() [all …]
|
/openbmc/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_ah.c | 137 rdma_gid2ip((struct sockaddr*)&dgid_addr, &ib_grh->dgid); in set_av_attr() 145 memcpy(&grh.dgid[0], ib_grh->dgid.raw, in set_av_attr() 146 sizeof(ib_grh->dgid.raw)); in set_av_attr() 248 rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); in ocrdma_query_ah()
|
/openbmc/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_ah.c | 87 memcpy(ah->av.dgid, grh->dgid.raw, HNS_ROCE_GID_SIZE); in hns_roce_create_ah() 114 rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); in hns_roce_query_ah()
|
/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_av.c | 66 __be32 dgid[4]; member 218 memcpy(av->dgid, grh->dgid.raw, 16); in mthca_create_ah() 221 av->dgid[3] = cpu_to_be32(2); in mthca_create_ah() 286 ah->av->dgid, 16); in mthca_read_ah() 320 rdma_ah_set_dgid_raw(attr, ah->av->dgid); in mthca_ah_query()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | ruc.c | 53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 58 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr() 59 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr() 90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 95 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr() 96 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr() 143 hdr->dgid = grh->dgid; in hfi1_make_grh()
|
H A D | ud.c | 166 if (ib_is_opa_gid(&grd.dgid)) in ud_loopback() 167 grd.dgid.global.interface_id = in ud_loopback() 617 grh->sgid = old_grh->dgid; in return_cnp_16B() 618 grh->dgid = old_grh->sgid; in return_cnp_16B() 675 grh->sgid = old_grh->dgid; in return_cnp() 676 grh->dgid = old_grh->sgid; in return_cnp()
|
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_misc.c | 257 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib() 267 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
|
H A D | pvrdma_verbs.h | 150 union pvrdma_gid dgid; member 164 union pvrdma_gid dgid; member
|
H A D | pvrdma_verbs.c | 526 rdma_is_multicast_addr((struct in6_addr *)grh->dgid.raw)) in pvrdma_create_ah() 539 memcpy(ah->av.dgid, grh->dgid.raw, 16); in pvrdma_create_ah()
|
/openbmc/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 567 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find() 593 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add() 664 if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, in ipoib_path_iter_next() 697 path->pathrec.dgid.raw); in ipoib_mark_paths_invalid() 760 pathrec->dgid.raw); in path_rec_completion() 763 status, path->pathrec.dgid.raw); in path_rec_completion() 785 if (memcmp(pathrec->dgid.raw, path->pathrec.dgid.raw, in path_rec_completion() 790 dev->name, pathrec->dgid.raw, in path_rec_completion() 791 path->pathrec.dgid.raw); in path_rec_completion() 792 memcpy(pathrec->dgid.raw, path->pathrec.dgid.raw, in path_rec_completion() [all …]
|
H A D | ipoib_ib.c | 179 union ib_gid *dgid; in ipoib_ib_handle_rx_wc() local 224 dgid = &((struct ib_grh *)skb->data)->dgid; in ipoib_ib_handle_rx_wc() 226 if (!(wc->wc_flags & IB_WC_GRH) || dgid->raw[0] != 0xff) in ipoib_ib_handle_rx_wc() 228 else if (memcmp(dgid, dev->broadcast + 4, sizeof(union ib_gid)) == 0) in ipoib_ib_handle_rx_wc()
|
/openbmc/linux/include/uapi/rdma/ |
H A D | ib_user_sa.h | 56 __u8 dgid[16]; member
|
H A D | rdma_user_rxe.h | 56 union rxe_gid dgid; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_sp.c | 443 memcpy(temp32, ah->dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_create_ah() 444 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_create_ah() 445 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_create_ah() 446 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_create_ah() 447 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_create_ah()
|