Searched refs:smcrv2 (Results 1 – 8 of 8) sorted by relevance
/linux-5.19.10/net/smc/ |
D | smc_ib.c | 226 struct smc_init_info_smcrv2 *smcrv2) in smc_ib_determine_gid_rcu() argument 228 if (!smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE) { in smc_ib_determine_gid_rcu() 235 if (smcrv2 && attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in smc_ib_determine_gid_rcu() 244 if (!inet_ifa_match(smcrv2->saddr, ifa)) in smc_ib_determine_gid_rcu() 251 if (smcrv2->daddr && smc_ib_find_route(smcrv2->saddr, in smc_ib_determine_gid_rcu() 252 smcrv2->daddr, in smc_ib_determine_gid_rcu() 253 smcrv2->nexthop_mac, in smc_ib_determine_gid_rcu() 254 &smcrv2->uses_gateway)) in smc_ib_determine_gid_rcu() 270 struct smc_init_info_smcrv2 *smcrv2) in smc_ib_determine_gid() argument 288 sgid_index, smcrv2)) { in smc_ib_determine_gid() [all …]
|
D | af_smc.c | 930 if (ini->check_smcrv2 && !ini->smcrv2.ib_dev_v2) in smc_find_rdma_device() 1037 ini->smcrv2.saddr = smc->clcsock->sk->sk_rcv_saddr; in smc_find_proposal_devices() 1104 alt_ini->smcrv2.saddr = lgr->saddr; in smc_fill_gid_list() 1107 if (!alt_ini->smcrv2.ib_dev_v2) in smc_fill_gid_list() 1110 memcpy(gidlist->list[gidlist->len++], alt_ini->smcrv2.ib_gid_v2, in smc_fill_gid_list() 1131 memcpy(ini->smcrv2.nexthop_mac, &aclc->r0.lcl.mac, ETH_ALEN); in smc_connect_rdma_v2_prepare() 1132 ini->smcrv2.uses_gateway = false; in smc_connect_rdma_v2_prepare() 1136 ini->smcrv2.nexthop_mac, in smc_connect_rdma_v2_prepare() 1137 &ini->smcrv2.uses_gateway)) in smc_connect_rdma_v2_prepare() 1139 if (!ini->smcrv2.uses_gateway) { in smc_connect_rdma_v2_prepare() [all …]
|
D | smc_llc.c | 1039 ini->smcrv2.saddr = lgr->saddr; in smc_llc_cli_add_link() 1040 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(llc->sender_gid); in smc_llc_cli_add_link() 1046 if (!ini->ib_dev && !ini->smcrv2.ib_dev_v2) in smc_llc_cli_add_link() 1050 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_cli_add_link() 1052 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_cli_add_link() 1053 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_cli_add_link() 1409 ini->smcrv2.saddr = lgr->saddr; in smc_llc_srv_add_link() 1414 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(req_add->gid[0]); in smc_llc_srv_add_link() 1418 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_srv_add_link() 1420 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_srv_add_link() [all …]
|
D | smc_ib.h | 113 struct smc_init_info_smcrv2 *smcrv2);
|
D | smc_pnet.c | 975 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, ini->smcrv2.ib_gid_v2, in smc_pnet_determine_gid() 976 NULL, &ini->smcrv2)) { in smc_pnet_determine_gid() 977 ini->smcrv2.ib_dev_v2 = ibdev; in smc_pnet_determine_gid() 978 ini->smcrv2.ib_port_v2 = i; in smc_pnet_determine_gid()
|
D | smc_core.c | 743 lnk->smcibdev = ini->smcrv2.ib_dev_v2; in smcr_link_init() 744 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init() 775 &ini->smcrv2 : NULL); in smcr_link_init() 885 ibdev = ini->smcrv2.ib_dev_v2; in smc_lgr_create() 886 ibport = ini->smcrv2.ib_port_v2; in smc_lgr_create() 887 lgr->saddr = ini->smcrv2.saddr; in smc_lgr_create() 888 lgr->uses_gateway = ini->smcrv2.uses_gateway; in smc_lgr_create() 889 memcpy(lgr->nexthop_mac, ini->smcrv2.nexthop_mac, in smc_lgr_create()
|
D | smc_clc.c | 927 memcpy(v2_ext->roce, ini->smcrv2.ib_gid_v2, SMC_GID_SIZE); in smc_clc_send_proposal() 1063 gle.gid_cnt = ini->smcrv2.gidlist.len; in smc_clc_send_confirm_accept() 1095 vec[i].iov_base = &ini->smcrv2.gidlist.list; in smc_clc_send_confirm_accept()
|
D | smc_core.h | 374 struct smc_init_info_smcrv2 smcrv2; member
|