Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/mlx5/
H A 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()
H A Dmacsec.c231 if (attr->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) in mlx5r_add_gid_macsec_operations()
261 attr->gid_type, NULL); in mlx5r_add_gid_macsec_operations()
310 if (attr->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) in mlx5r_del_gid_macsec_operations()
H A Dmain.c613 enum ib_gid_type gid_type; in set_roce_addr() local
620 gid_type = attr->gid_type; in set_roce_addr()
627 switch (gid_type) { in set_roce_addr()
640 mlx5_ib_warn(dev, "Unexpected GID type %u\n", gid_type); in set_roce_addr()
679 if (attr->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) in mlx5_get_roce_udp_sport_min()
/linux/drivers/infiniband/core/
H A Dcma_configfs.c104 int gid_type; in default_roce_mode_show() local
111 gid_type = cma_get_default_gid_type(cma_dev, group->port_num); in default_roce_mode_show()
114 if (gid_type < 0) in default_roce_mode_show()
115 return gid_type; in default_roce_mode_show()
117 return sysfs_emit(buf, "%s\n", ib_cache_gid_type_str(gid_type)); in default_roce_mode_show()
125 int gid_type; in default_roce_mode_store() local
132 gid_type = ib_cache_gid_parse_type_str(buf); in default_roce_mode_store()
133 if (gid_type < 0) { in default_roce_mode_store()
138 ret = cma_set_default_gid_type(cma_dev, group->port_num, gid_type); in default_roce_mode_store()
H A 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()
840 unsigned int gid_type; in ib_cache_gid_set_default_gid() local
849 for (gid_type = 0; gid_type < IB_GID_TYPE_SIZE; ++gid_type) { in ib_cache_gid_set_default_gid()
850 if (1UL << gid_type & ~gid_type_mask) in ib_cache_gid_set_default_gid()
853 gid_attr.gid_type = gid_type; in ib_cache_gid_set_default_gid()
[all …]
H A Dcma.c73 enum ib_gid_type gid_type);
603 id_priv->gid_type = in cma_attach_to_dev()
684 enum ib_gid_type gid_type, in cma_validate_port() argument
731 gid_type = IB_GID_TYPE_IB; in cma_validate_port()
734 sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); in cma_validate_port()
762 enum ib_gid_type gid_type; in cma_acquire_dev_by_src_ip() local
781 gid_type = cma_dev->default_gid_type[port - 1]; in cma_acquire_dev_by_src_ip()
783 gid_type, gidp, id_priv); in cma_acquire_dev_by_src_ip()
815 enum ib_gid_type gid_type; in cma_ib_acquire_dev() local
829 gid_type = listen_id_priv->cma_dev->default_gid_type[req->port - 1]; in cma_ib_acquire_dev()
[all …]
H A Dcma_priv.h103 enum ib_gid_type gid_type; member
H A 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()
H A Dverbs.c681 enum ib_gid_type gid_type; member
692 if (ctx->gid_type != gid_attr->gid_type) in find_gid_index()
705 enum ib_gid_type gid_type) in get_sgid_attr_from_eth() argument
708 .gid_type = gid_type}; in get_sgid_attr_from_eth()
764 sgid_attr->gid_type == IB_GID_TYPE_ROCE) { in ib_resolve_unicast_gid_dmac()
797 enum ib_gid_type gid_type = IB_GID_TYPE_IB; in ib_init_ah_attr_from_wc() local
812 gid_type = ib_network_to_gid_type(net_type); in ib_init_ah_attr_from_wc()
831 gid_type); in ib_init_ah_attr_from_wc()
H A Dlag.c115 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave()
H A Duverbs_std_types_device.c411 entry.gid_type = gid_attr->gid_type; in UVERBS_HANDLER()
H A Dcore_priv.h127 const char *ib_cache_gid_type_str(enum ib_gid_type gid_type);
H A 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()
/linux/include/rdma/
H A Dib_cache.h18 enum ib_gid_type gid_type,
22 enum ib_gid_type gid_type,
H A Dib_sa.h497 enum ib_gid_type gid_type,
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c87 if (ret && grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in hns_roce_create_ah()
91 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in hns_roce_create_ah()
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A 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()
H A Dpvrdma.h530 u8 ib_gid_type_to_pvrdma(enum ib_gid_type gid_type);
H A Dpvrdma_dev_api.h632 u8 gid_type; member
/linux/include/uapi/rdma/
H A Dib_user_ioctl_verbs.h270 __u32 gid_type; member
/linux/net/smc/
H A Dsmc_ib.c233 if (!smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE) { in smc_ib_determine_gid_rcu()
240 if (smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in smc_ib_determine_gid_rcu()
320 if ((!smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE) || in smc_ib_check_link_gid()
321 (smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in smc_ib_check_link_gid()
/linux/drivers/infiniband/hw/mlx4/
H A Dmain.c217 if (gids[i].gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) { in mlx4_ib_update_gids_v1_v2()
285 port_gid_table->gids[i].gid_type == attr->gid_type && in mlx4_ib_add_gid()
304 port_gid_table->gids[free].gid_type = attr->gid_type; in mlx4_ib_add_gid()
326 gids[i].gid_type = port_gid_table->gids[i].gid_type; in mlx4_ib_add_gid()
385 gids[i].gid_type = in mlx4_ib_del_gid()
386 port_gid_table->gids[i].gid_type; in mlx4_ib_del_gid()
425 attr->gid_type == port_gid_table->gids[i].gid_type) { in mlx4_ib_gid_index_to_real_index()
H A Dqp.c1990 static u8 gid_type_to_qpc(enum ib_gid_type gid_type) in gid_type_to_qpc() argument
1992 switch (gid_type) { in gid_type_to_qpc()
2276 enum ib_gid_type gid_type = qp->flags & MLX4_IB_ROCE_V2_GSI_QP ? in __mlx4_ib_modify_qp()
2278 u8 qpc_roce_mode = gid_type_to_qpc(gid_type); in __mlx4_ib_modify_qp()
2317 u8 qpc_roce_mode = gid_type_to_qpc(gid_attr->gid_type); in __mlx4_ib_modify_qp()
2995 enum ib_gid_type *gid_type) in fill_gid_by_hw_index() argument
3004 *gid_type = port_gid_table->gids[index].gid_type; in fill_gid_by_hw_index()
3044 enum ib_gid_type gid_type; in build_mlx_header() local
3057 &gid_type); in build_mlx_header()
3059 is_udp = gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP; in build_mlx_header()
[all …]
H A Dmlx4_ib.h536 enum ib_gid_type gid_type; member
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c409 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header()

12