/Linux-v6.6/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 | cma.c | 615 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev() 616 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev() 617 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev() 689 const struct ib_gid_attr *sgid_attr = ERR_PTR(-ENODEV); in cma_validate_port() local 711 sgid_attr = rdma_get_gid_attr(device, port, 0); in cma_validate_port() 712 if (IS_ERR(sgid_attr)) in cma_validate_port() 716 ndev = rcu_dereference(sgid_attr->ndev); in cma_validate_port() 719 sgid_attr = ERR_PTR(-ENODEV); in cma_validate_port() 732 sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); in cma_validate_port() 735 return sgid_attr; in cma_validate_port() [all …]
|
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 | 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() 3481 ret = cm_init_av_by_path(param->path, param->sgid_attr, &av); in ib_send_cm_sidr_req() 3537 param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; in cm_format_sidr_req_event() 3714 param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_sidr_rep_event()
|
/Linux-v6.6/drivers/infiniband/sw/rxe/ |
D | rxe_av.c | 47 type = rdma_gid_attr_network_type(grh->sgid_attr); in chk_attr() 105 const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; in rxe_av_fill_ip_info() local 109 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in rxe_av_fill_ip_info() 113 ibtype = rdma_gid_attr_network_type(sgid_attr); in rxe_av_fill_ip_info()
|
/Linux-v6.6/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-v6.6/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 | 3553 (grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) && in mlx5_set_path() 3559 gid_type = ah->grh.sgid_attr->gid_type; in mlx5_set_path()
|
/Linux-v6.6/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 | 779 const struct ib_gid_attr *sgid_attr; member 1576 const struct ib_gid_attr *sgid_attr; member 4625 grh->sgid_attr = NULL; in rdma_ah_set_grh() 4631 const struct ib_gid_attr *sgid_attr);
|
/Linux-v6.6/drivers/infiniband/hw/qedr/ |
D | qedr_roce_cm.c | 388 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; in qedr_gsi_build_header() local 398 rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); in qedr_gsi_build_header() 409 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header() 414 } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { in qedr_gsi_build_header() 462 memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, in qedr_gsi_build_header() 473 ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); in qedr_gsi_build_header()
|
/Linux-v6.6/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 | 1795 mlx4_ib_gid_index_to_real_index(dev, grh->sgid_attr); in _mlx4_set_path() 2301 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp() 3116 ah->ibah.sgid_attr->gid; in build_mlx_header()
|
/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 81 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, in hns_roce_create_ah()
|
D | hns_roce_device.h | 1109 return grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ? in get_tclass()
|
D | hns_roce_hw_v2.c | 4776 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE) in fill_cong_field() 4849 gid_attr = attr->ah_attr.grh.sgid_attr; in hns_roce_v2_set_path()
|
/Linux-v6.6/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 728 const struct ib_gid_attr *sgid_attr; in bnxt_re_create_ah() local 746 sgid_attr = grh->sgid_attr; in bnxt_re_create_ah() 750 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_create_ah() 759 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_create_ah() 1995 const struct ib_gid_attr *sgid_attr; in bnxt_re_modify_qp() local 2008 sgid_attr = grh->sgid_attr; in bnxt_re_modify_qp() 2012 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_modify_qp() 2021 rc = rdma_read_gid_l2_fields(sgid_attr, NULL, in bnxt_re_modify_qp() 2026 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_modify_qp() 2229 const struct ib_gid_attr *sgid_attr = ah->ib_ah.sgid_attr; in bnxt_re_build_qp1_send_v2() local [all …]
|
/Linux-v6.6/drivers/infiniband/hw/irdma/ |
D | verbs.c | 1236 const struct ib_gid_attr *sgid_attr = in irdma_modify_qp_roce() local 1237 attr->ah_attr.grh.sgid_attr; in irdma_modify_qp_roce() 1258 ret = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, in irdma_modify_qp_roce() 1262 ctx_info->user_pri = irdma_roce_get_vlan_prio(sgid_attr, in irdma_modify_qp_roce() 1280 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in irdma_modify_qp_roce() 1282 av->net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_modify_qp_roce() 4272 const struct ib_gid_attr *sgid_attr; in irdma_setup_ah() local 4286 sgid_attr = ah_attr->grh.sgid_attr; in irdma_setup_ah() 4288 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in irdma_setup_ah() 4291 ah->av.net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_setup_ah() [all …]
|
/Linux-v6.6/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 284 header->grh.source_gid = ah->ibah.sgid_attr->gid; in mthca_read_ah()
|