Home
last modified time | relevance | path

Searched refs:smcrv2 (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/net/smc/
Dsmc_ib.c231 struct smc_init_info_smcrv2 *smcrv2) in smc_ib_determine_gid_rcu() argument
233 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()
250 if (!inet_ifa_match(smcrv2->saddr, ifa)) in smc_ib_determine_gid_rcu()
257 if (smcrv2->daddr && smc_ib_find_route(net, smcrv2->saddr, in smc_ib_determine_gid_rcu()
258 smcrv2->daddr, in smc_ib_determine_gid_rcu()
259 smcrv2->nexthop_mac, in smc_ib_determine_gid_rcu()
260 &smcrv2->uses_gateway)) in smc_ib_determine_gid_rcu()
276 struct smc_init_info_smcrv2 *smcrv2) in smc_ib_determine_gid() argument
294 sgid_index, smcrv2)) { in smc_ib_determine_gid()
[all …]
Daf_smc.c1000 if (ini->check_smcrv2 && !ini->smcrv2.ib_dev_v2) in smc_find_rdma_device()
1117 ini->smcrv2.saddr = smc->clcsock->sk->sk_rcv_saddr; in smc_find_proposal_devices()
1184 alt_ini->smcrv2.saddr = lgr->saddr; in smc_fill_gid_list()
1187 if (!alt_ini->smcrv2.ib_dev_v2) in smc_fill_gid_list()
1190 memcpy(gidlist->list[gidlist->len++], alt_ini->smcrv2.ib_gid_v2, in smc_fill_gid_list()
1210 memcpy(ini->smcrv2.nexthop_mac, &aclc->r0.lcl.mac, ETH_ALEN); in smc_connect_rdma_v2_prepare()
1211 ini->smcrv2.uses_gateway = false; in smc_connect_rdma_v2_prepare()
1215 ini->smcrv2.nexthop_mac, in smc_connect_rdma_v2_prepare()
1216 &ini->smcrv2.uses_gateway)) in smc_connect_rdma_v2_prepare()
1218 if (!ini->smcrv2.uses_gateway) { in smc_connect_rdma_v2_prepare()
[all …]
Dsmc_llc.c1056 ini->smcrv2.saddr = lgr->saddr; in smc_llc_cli_add_link()
1057 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(llc->sender_gid); in smc_llc_cli_add_link()
1063 if (!ini->ib_dev && !ini->smcrv2.ib_dev_v2) in smc_llc_cli_add_link()
1067 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_cli_add_link()
1069 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_cli_add_link()
1070 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_cli_add_link()
1434 ini->smcrv2.saddr = lgr->saddr; in smc_llc_srv_add_link()
1439 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(req_add->gid[0]); in smc_llc_srv_add_link()
1443 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_srv_add_link()
1445 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_srv_add_link()
[all …]
Dsmc_ib.h114 struct smc_init_info_smcrv2 *smcrv2);
Dsmc_pnet.c988 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, ini->smcrv2.ib_gid_v2, in smc_pnet_determine_gid()
989 NULL, &ini->smcrv2)) { in smc_pnet_determine_gid()
990 ini->smcrv2.ib_dev_v2 = ibdev; in smc_pnet_determine_gid()
991 ini->smcrv2.ib_port_v2 = i; in smc_pnet_determine_gid()
Dsmc_core.c796 lnk->smcibdev = ini->smcrv2.ib_dev_v2; in smcr_link_init()
797 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init()
828 &ini->smcrv2 : NULL); in smcr_link_init()
943 ibdev = ini->smcrv2.ib_dev_v2; in smc_lgr_create()
944 ibport = ini->smcrv2.ib_port_v2; in smc_lgr_create()
945 lgr->saddr = ini->smcrv2.saddr; in smc_lgr_create()
946 lgr->uses_gateway = ini->smcrv2.uses_gateway; in smc_lgr_create()
947 memcpy(lgr->nexthop_mac, ini->smcrv2.nexthop_mac, in smc_lgr_create()
Dsmc_clc.c975 memcpy(v2_ext->roce, ini->smcrv2.ib_gid_v2, SMC_GID_SIZE); in smc_clc_send_proposal()
1127 gle->gid_cnt = ini->smcrv2.gidlist.len; in smcr_clc_prep_confirm_accept()
1183 vec[i].iov_base = &ini->smcrv2.gidlist.list; in smc_clc_send_confirm_accept()
Dsmc_core.h427 struct smc_init_info_smcrv2 smcrv2; member