Home
last modified time | relevance | path

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

/net/smc/
Daf_smc.c727 struct smc_init_info *ini) in smc_link_save_peer_info() argument
730 memcpy(link->peer_gid, ini->peer_gid, SMC_GID_SIZE); in smc_link_save_peer_info()
731 memcpy(link->peer_mac, ini->peer_mac, sizeof(link->peer_mac)); in smc_link_save_peer_info()
986 static int smc_find_rdma_device(struct smc_sock *smc, struct smc_init_info *ini) in smc_find_rdma_device() argument
992 smc_pnet_find_roce_resource(smc->clcsock->sk, ini); in smc_find_rdma_device()
993 if (!ini->check_smcrv2 && !ini->ib_dev) in smc_find_rdma_device()
995 if (ini->check_smcrv2 && !ini->smcrv2.ib_dev_v2) in smc_find_rdma_device()
1002 static int smc_find_ism_device(struct smc_sock *smc, struct smc_init_info *ini) in smc_find_ism_device() argument
1005 smc_pnet_find_ism_resource(smc->clcsock->sk, ini); in smc_find_ism_device()
1006 if (!ini->ism_dev[0]) in smc_find_ism_device()
[all …]
Dsmc_clc.c432 struct smc_init_info *ini) in smc_clc_fill_fce() argument
438 fce->fce_v2_base.release = ini->release_nr; in smc_clc_fill_fce()
440 if (ini->is_smcd && ini->release_nr < SMC_RELEASE_1) { in smc_clc_fill_fce()
445 if (ini->release_nr >= SMC_RELEASE_1) { in smc_clc_fill_fce()
446 if (!ini->is_smcd) { in smc_clc_fill_fce()
447 fce->max_conns = ini->max_conns; in smc_clc_fill_fce()
448 fce->max_links = ini->max_links; in smc_clc_fill_fce()
829 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini) in smc_clc_send_proposal() argument
860 pclc_base->hdr.typev1 = ini->smc_type_v1; in smc_clc_send_proposal()
861 pclc_base->hdr.typev2 = ini->smc_type_v2; in smc_clc_send_proposal()
[all …]
Dsmc_core.c745 u8 link_idx, struct smc_init_info *ini) in smcr_link_init() argument
752 lnk->smcibdev = ini->smcrv2.ib_dev_v2; in smcr_link_init()
753 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init()
755 lnk->smcibdev = ini->ib_dev; in smcr_link_init()
756 lnk->ibport = ini->ib_port; in smcr_link_init()
782 ini->vlan_id, lnk->gid, &lnk->sgid_index, in smcr_link_init()
784 &ini->smcrv2 : NULL); in smcr_link_init()
826 static int smc_lgr_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_lgr_create() argument
837 if (ini->is_smcd && ini->vlan_id) { in smc_lgr_create()
838 if (smc_ism_get_vlan(ini->ism_dev[ini->ism_selected], in smc_lgr_create()
[all …]
Dsmc_pnet.c981 struct smc_init_info *ini) in smc_pnet_determine_gid() argument
983 if (!ini->check_smcrv2 && in smc_pnet_determine_gid()
984 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, ini->ib_gid, NULL, in smc_pnet_determine_gid()
986 ini->ib_dev = ibdev; in smc_pnet_determine_gid()
987 ini->ib_port = i; in smc_pnet_determine_gid()
990 if (ini->check_smcrv2 && in smc_pnet_determine_gid()
991 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, ini->smcrv2.ib_gid_v2, in smc_pnet_determine_gid()
992 NULL, &ini->smcrv2)) { in smc_pnet_determine_gid()
993 ini->smcrv2.ib_dev_v2 = ibdev; in smc_pnet_determine_gid()
994 ini->smcrv2.ib_port_v2 = i; in smc_pnet_determine_gid()
[all …]
Dsmc_llc.c942 struct smc_init_info *ini, in smc_llc_cli_conf_link() argument
1035 struct smc_init_info *ini = NULL; in smc_llc_cli_add_link() local
1042 ini = kzalloc(sizeof(*ini), GFP_KERNEL); in smc_llc_cli_add_link()
1043 if (!ini) { in smc_llc_cli_add_link()
1053 ini->vlan_id = lgr->vlan_id; in smc_llc_cli_add_link()
1055 ini->check_smcrv2 = true; in smc_llc_cli_add_link()
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()
1059 smc_pnet_find_alt_roce(lgr, ini, link->smcibdev); in smc_llc_cli_add_link()
1063 if (!ini->ib_dev && !ini->smcrv2.ib_dev_v2) in smc_llc_cli_add_link()
[all …]
Dsmc_pnet.h61 void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini);
62 void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini);
66 struct smc_init_info *ini,
Dsmc_clc.h420 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini);
422 u8 version, u8 *eid, struct smc_init_info *ini);
424 u8 version, u8 *negotiated_eid, struct smc_init_info *ini);
426 struct smc_init_info *ini);
428 struct smc_init_info *ini);
430 struct smc_init_info *ini);
Dsmc_core.h563 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini);
566 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini);
571 u8 link_idx, struct smc_init_info *ini);