/linux-6.1.9/drivers/infiniband/core/ |
D | verbs.c | 363 if (dest->grh.sgid_attr) in rdma_copy_ah_attr() 364 rdma_hold_gid_attr(dest->grh.sgid_attr); in rdma_copy_ah_attr() 383 if (old->grh.sgid_attr) in rdma_replace_ah_attr() 384 rdma_hold_gid_attr(old->grh.sgid_attr); in rdma_replace_ah_attr() 403 src->grh.sgid_attr = NULL; in rdma_move_ah_attr() 422 if (ah_attr->grh.sgid_attr) { in rdma_check_ah_attr() 427 if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || in rdma_check_ah_attr() 428 ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) in rdma_check_ah_attr() 442 const struct ib_gid_attr *sgid_attr; in rdma_fill_sgid_attr() local 446 *old_sgid_attr = ah_attr->grh.sgid_attr; in rdma_fill_sgid_attr() [all …]
|
D | lag.c | 51 memcpy(&iph->saddr, ah_attr->grh.sgid_attr->gid.raw + 12, in rdma_build_skb() 63 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, in rdma_build_skb() 73 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb() 117 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave() 122 master = rdma_read_gid_attr_ndev_rcu(ah_attr->grh.sgid_attr); in rdma_lag_get_ah_roce_slave()
|
D | addr.c | 530 ndev = rdma_read_gid_attr_ndev_rcu(addr->sgid_attr); in set_addr_netns_by_gid_rcu() 571 if (!addr->sgid_attr) { in addr_resolve() 747 dev_addr.sgid_attr = attr; in roce_resolve_route_from_path() 815 u8 *dmac, const struct ib_gid_attr *sgid_attr, in rdma_addr_find_l2_eth_by_grh() argument 831 dev_addr.sgid_attr = sgid_attr; in rdma_addr_find_l2_eth_by_grh()
|
D | cma.c | 608 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev() 609 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev() 610 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev() 684 const struct ib_gid_attr *sgid_attr; in cma_validate_port() local 705 sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); in cma_validate_port() 708 return sgid_attr; in cma_validate_port() 712 const struct ib_gid_attr *sgid_attr) in cma_bind_sgid_attr() argument 714 WARN_ON(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_bind_sgid_attr() 715 id_priv->id.route.addr.dev_addr.sgid_attr = sgid_attr; in cma_bind_sgid_attr() 730 const struct ib_gid_attr *sgid_attr; in cma_acquire_dev_by_src_ip() local [all …]
|
D | multicast.c | 741 const struct ib_gid_attr *sgid_attr; in ib_init_ah_from_mcmember() local 751 sgid_attr = rdma_find_gid_by_port(device, &rec->port_gid, in ib_init_ah_from_mcmember() 753 if (IS_ERR(sgid_attr)) in ib_init_ah_from_mcmember() 754 return PTR_ERR(sgid_attr); in ib_init_ah_from_mcmember() 766 sgid_attr); in ib_init_ah_from_mcmember()
|
D | core_priv.h | 334 u8 *dmac, const struct ib_gid_attr *sgid_attr,
|
D | cm.c | 510 const struct ib_gid_attr *sgid_attr, in cm_init_av_by_path() argument 518 port = get_cm_port_from_path(path, sgid_attr); in cm_init_av_by_path() 540 &new_ah_attr, sgid_attr); in cm_init_av_by_path() 1818 param->ppath_sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_req_event() 2129 gid_attr = grh->sgid_attr; in cm_req_handler() 3480 ret = cm_init_av_by_path(param->path, param->sgid_attr, &av); in ib_send_cm_sidr_req() 3536 param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; in cm_format_sidr_req_event() 3713 param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_sidr_rep_event()
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_av.c | 32 type = rdma_gid_attr_network_type(grh->sgid_attr); in rxe_av_chk_attr() 76 const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; in rxe_av_fill_ip_info() local 80 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in rxe_av_fill_ip_info() 84 ibtype = rdma_gid_attr_network_type(sgid_attr); in rxe_av_fill_ip_info()
|
/linux-6.1.9/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 166 const struct ib_gid_attr *sgid_attr; in ocrdma_create_ah() local 178 sgid_attr = attr->grh.sgid_attr; in ocrdma_create_ah() 179 status = rdma_read_gid_l2_fields(sgid_attr, &vlan_tag, NULL); in ocrdma_create_ah() 188 ah->hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_create_ah() 190 status = set_av_attr(dev, ah, attr, &sgid_attr->gid, pd->id, in ocrdma_create_ah()
|
D | ocrdma_hw.c | 2490 const struct ib_gid_attr *sgid_attr; in ocrdma_set_av_params() local 2519 sgid_attr = ah_attr->grh.sgid_attr; in ocrdma_set_av_params() 2520 status = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, &mac_addr[0]); in ocrdma_set_av_params() 2525 memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], in ocrdma_set_av_params() 2534 hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_set_av_params() 2536 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in ocrdma_set_av_params()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | ah.c | 38 enum ib_gid_type gid_type = ah_attr->grh.sgid_attr->gid_type; in mlx5_ah_get_udp_sport() 48 ah_attr->grh.sgid_attr); in mlx5_ah_get_udp_sport() 77 gid_type = ah_attr->grh.sgid_attr->gid_type; in create_ib_ah()
|
D | qp.c | 3465 (grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) && in mlx5_set_path() 3471 gid_type = ah->grh.sgid_attr->gid_type; in mlx5_set_path()
|
/linux-6.1.9/include/rdma/ |
D | ib_cm.h | 217 const struct ib_gid_attr *sgid_attr; member 238 const struct ib_gid_attr *sgid_attr; member 523 const struct ib_gid_attr *sgid_attr; member
|
D | ib_addr.h | 44 const struct ib_gid_attr *sgid_attr; member
|
D | ib_sa.h | 503 const struct ib_gid_attr *sgid_attr);
|
D | ib_verbs.h | 775 const struct ib_gid_attr *sgid_attr; member 1566 const struct ib_gid_attr *sgid_attr; member 4582 grh->sgid_attr = NULL; in rdma_ah_set_grh() 4588 const struct ib_gid_attr *sgid_attr);
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ |
D | qedr_roce_cm.c | 389 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; in qedr_gsi_build_header() local 399 rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); in qedr_gsi_build_header() 410 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header() 415 } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { in qedr_gsi_build_header() 463 memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, in qedr_gsi_build_header() 474 ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); in qedr_gsi_build_header()
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
D | ah.c | 100 gid_attr = ah_attr->grh.sgid_attr; in create_iboe_ah() 175 slave_attr.grh.sgid_attr = NULL; in mlx4_ib_create_ah_slave()
|
D | qp.c | 1756 mlx4_ib_gid_index_to_real_index(dev, grh->sgid_attr); in _mlx4_set_path() 2262 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp() 3077 ah->ibah.sgid_attr->gid; in build_mlx_header()
|
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 650 const struct ib_gid_attr *sgid_attr; in bnxt_re_create_ah() local 667 sgid_attr = grh->sgid_attr; in bnxt_re_create_ah() 671 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_create_ah() 680 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_create_ah() 1884 const struct ib_gid_attr *sgid_attr; in bnxt_re_modify_qp() local 1897 sgid_attr = grh->sgid_attr; in bnxt_re_modify_qp() 1901 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_modify_qp() 1910 rc = rdma_read_gid_l2_fields(sgid_attr, NULL, in bnxt_re_modify_qp() 1915 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_modify_qp() 2118 const struct ib_gid_attr *sgid_attr = ah->ib_ah.sgid_attr; in bnxt_re_build_qp1_send_v2() local [all …]
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 82 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, in hns_roce_create_ah()
|
D | hns_roce_device.h | 1096 return grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ? in get_tclass()
|
D | hns_roce_hw_v2.c | 4935 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE) in fill_cong_field() 5008 gid_attr = attr->ah_attr.grh.sgid_attr; in hns_roce_v2_set_path()
|
/linux-6.1.9/drivers/infiniband/hw/irdma/ |
D | verbs.c | 1176 const struct ib_gid_attr *sgid_attr; in irdma_modify_qp_roce() local 1197 sgid_attr = attr->ah_attr.grh.sgid_attr; in irdma_modify_qp_roce() 1198 ret = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, in irdma_modify_qp_roce() 1214 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in irdma_modify_qp_roce() 1216 av->net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_modify_qp_roce() 4123 const struct ib_gid_attr *sgid_attr; in irdma_setup_ah() local 4137 sgid_attr = ah_attr->grh.sgid_attr; in irdma_setup_ah() 4139 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in irdma_setup_ah() 4142 ah->av.net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_setup_ah() 4177 err = rdma_read_gid_l2_fields(sgid_attr, &ah_info->vlan_tag, in irdma_setup_ah()
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 284 header->grh.source_gid = ah->ibah.sgid_attr->gid; in mthca_read_ah()
|