Searched refs:smcrv2 (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/net/smc/ |
D | smc_ib.c | 231 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 …]
|
D | af_smc.c | 1000 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 …]
|
D | smc_llc.c | 1056 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 …]
|
D | smc_ib.h | 114 struct smc_init_info_smcrv2 *smcrv2);
|
D | smc_pnet.c | 988 !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()
|
D | smc_core.c | 796 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()
|
D | smc_clc.c | 975 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()
|
D | smc_core.h | 427 struct smc_init_info_smcrv2 smcrv2; member
|