Home
last modified time | relevance | path

Searched refs:gid_type (Results 1 – 25 of 26) sorted by relevance

12

/drivers/infiniband/hw/mlx5/
Dah.c38 enum ib_gid_type gid_type = ah_attr->grh.sgid_attr->gid_type; in mlx5_ah_get_udp_sport() local
41 if ((gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) && in mlx5_ah_get_udp_sport()
57 enum ib_gid_type gid_type; in create_ib_ah() local
77 gid_type = ah_attr->grh.sgid_attr->gid_type; in create_ib_ah()
83 if (gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in create_ib_ah()
Dmain.c572 enum ib_gid_type gid_type; in set_roce_addr() local
579 gid_type = attr->gid_type; in set_roce_addr()
586 switch (gid_type) { in set_roce_addr()
599 mlx5_ib_warn(dev, "Unexpected GID type %u\n", gid_type); in set_roce_addr()
625 if (attr->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) in mlx5_get_roce_udp_sport_min()
Dqp.c3433 enum ib_gid_type gid_type; in mlx5_set_path() local
3463 (grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) && in mlx5_set_path()
3469 gid_type = ah->grh.sgid_attr->gid_type; in mlx5_set_path()
3470 if (gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in mlx5_set_path()
/drivers/infiniband/core/
Dcma_configfs.c105 int gid_type; in default_roce_mode_show() local
112 gid_type = cma_get_default_gid_type(cma_dev, group->port_num); in default_roce_mode_show()
115 if (gid_type < 0) in default_roce_mode_show()
116 return gid_type; in default_roce_mode_show()
118 return sysfs_emit(buf, "%s\n", ib_cache_gid_type_str(gid_type)); in default_roce_mode_show()
126 int gid_type; in default_roce_mode_store() local
133 gid_type = ib_cache_gid_parse_type_str(buf); in default_roce_mode_store()
134 if (gid_type < 0) { in default_roce_mode_store()
139 ret = cma_set_default_gid_type(cma_dev, group->port_num, gid_type); in default_roce_mode_store()
Dcache.c144 const char *ib_cache_gid_type_str(enum ib_gid_type gid_type) in ib_cache_gid_type_str() argument
146 if (gid_type < ARRAY_SIZE(gid_type_str) && gid_type_str[gid_type]) in ib_cache_gid_type_str()
147 return gid_type_str[gid_type]; in ib_cache_gid_type_str()
516 attr->gid_type != val->gid_type) in find_gid()
685 enum ib_gid_type gid_type, in rdma_find_gid_by_port() argument
692 struct ib_gid_attr val = {.ndev = ndev, .gid_type = gid_type}; in rdma_find_gid_by_port()
844 unsigned int gid_type; in ib_cache_gid_set_default_gid() local
853 for (gid_type = 0; gid_type < IB_GID_TYPE_SIZE; ++gid_type) { in ib_cache_gid_set_default_gid()
854 if (1UL << gid_type & ~gid_type_mask) in ib_cache_gid_set_default_gid()
857 gid_attr.gid_type = gid_type; in ib_cache_gid_set_default_gid()
[all …]
Dcma.c71 enum ib_gid_type gid_type);
465 id_priv->gid_type = in cma_attach_to_dev()
556 enum ib_gid_type gid_type, in cma_validate_port() argument
580 gid_type = IB_GID_TYPE_IB; in cma_validate_port()
583 sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); in cma_validate_port()
611 enum ib_gid_type gid_type; in cma_acquire_dev_by_src_ip() local
630 gid_type = cma_dev->default_gid_type[port - 1]; in cma_acquire_dev_by_src_ip()
632 gid_type, gidp, id_priv); in cma_acquire_dev_by_src_ip()
664 enum ib_gid_type gid_type; in cma_ib_acquire_dev() local
678 gid_type = listen_id_priv->cma_dev->default_gid_type[req->port - 1]; in cma_ib_acquire_dev()
[all …]
Dcma_priv.h95 enum ib_gid_type gid_type; member
Dverbs.c686 enum ib_gid_type gid_type; member
697 if (ctx->gid_type != gid_attr->gid_type) in find_gid_index()
710 enum ib_gid_type gid_type) in get_sgid_attr_from_eth() argument
713 .gid_type = gid_type}; in get_sgid_attr_from_eth()
769 sgid_attr->gid_type == IB_GID_TYPE_ROCE) { in ib_resolve_unicast_gid_dmac()
802 enum ib_gid_type gid_type = IB_GID_TYPE_IB; in ib_init_ah_attr_from_wc() local
817 gid_type = ib_network_to_gid_type(net_type); in ib_init_ah_attr_from_wc()
836 gid_type); in ib_init_ah_attr_from_wc()
Droce_gid_mgmt.c74 enum ib_gid_type gid_type; member
92 ret_flags |= 1UL << PORT_CAP_TO_GID_TYPE[i].gid_type; in roce_gid_type_mask_support()
107 gid_attr->gid_type = i; in update_gid()
Dlag.c118 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave()
Duverbs_std_types_device.c410 entry.gid_type = gid_attr->gid_type; in UVERBS_HANDLER()
Dcore_priv.h127 const char *ib_cache_gid_type_str(enum ib_gid_type gid_type);
Dmulticast.c738 enum ib_gid_type gid_type, in ib_init_ah_from_mcmember() argument
752 gid_type, port_num, ndev); in ib_init_ah_from_mcmember()
Dsysfs.c453 ib_cache_gid_type_str(gid_attr->gid_type)); in print_gid_type()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c301 u8 ib_gid_type_to_pvrdma(enum ib_gid_type gid_type) in ib_gid_type_to_pvrdma() argument
303 return (gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) ? in ib_gid_type_to_pvrdma()
Dpvrdma_main.c584 u8 gid_type, in pvrdma_add_gid_at_index() argument
602 cmd_bind->gid_type = gid_type; in pvrdma_add_gid_at_index()
619 ib_gid_type_to_pvrdma(attr->gid_type), in pvrdma_add_gid()
Dpvrdma.h530 u8 ib_gid_type_to_pvrdma(enum ib_gid_type gid_type);
Dpvrdma_dev_api.h632 u8 gid_type; member
/drivers/infiniband/hw/mlx4/
Dmain.c219 if (gids[i].gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) { in mlx4_ib_update_gids_v1_v2()
287 port_gid_table->gids[i].gid_type == attr->gid_type && in mlx4_ib_add_gid()
307 port_gid_table->gids[free].gid_type = attr->gid_type; in mlx4_ib_add_gid()
329 gids[i].gid_type = port_gid_table->gids[i].gid_type; in mlx4_ib_add_gid()
388 gids[i].gid_type = in mlx4_ib_del_gid()
389 port_gid_table->gids[i].gid_type; in mlx4_ib_del_gid()
428 attr->gid_type == port_gid_table->gids[i].gid_type) { in mlx4_ib_gid_index_to_real_index()
Dqp.c1955 static u8 gid_type_to_qpc(enum ib_gid_type gid_type) in gid_type_to_qpc() argument
1957 switch (gid_type) { in gid_type_to_qpc()
2241 enum ib_gid_type gid_type = qp->flags & MLX4_IB_ROCE_V2_GSI_QP ? in __mlx4_ib_modify_qp()
2243 u8 qpc_roce_mode = gid_type_to_qpc(gid_type); in __mlx4_ib_modify_qp()
2282 u8 qpc_roce_mode = gid_type_to_qpc(gid_attr->gid_type); in __mlx4_ib_modify_qp()
2960 enum ib_gid_type *gid_type) in fill_gid_by_hw_index() argument
2969 *gid_type = port_gid_table->gids[index].gid_type; in fill_gid_by_hw_index()
3009 enum ib_gid_type gid_type; in build_mlx_header() local
3022 &gid_type); in build_mlx_header()
3024 is_udp = gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP; in build_mlx_header()
[all …]
Dmlx4_ib.h535 enum ib_gid_type gid_type; member
/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c410 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header()
/drivers/infiniband/hw/hns/
Dhns_roce_device.h1130 return grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ? in get_tclass()
Dhns_roce_hw_v2.c3002 if (attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) { in hns_roce_v2_set_gid()
3007 } else if (attr->gid_type == IB_GID_TYPE_ROCE) { in hns_roce_v2_set_gid()
4615 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE) in fill_cong_field()
4682 is_udp = (gid_attr->gid_type == in hns_roce_v2_set_path()
/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c2158 is_udp = sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP; in bnxt_re_build_qp1_send_v2()

12