Home
last modified time | relevance | path

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

/net/smc/
Dsmc_ib.c54 qp_attr.port_num = lnk->ibport; in smc_ib_modify_qp_init()
74 rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); in smc_ib_modify_qp_rtr()
155 static int smc_ib_fill_mac(struct smc_ib_device *smcibdev, u8 ibport) in smc_ib_fill_mac() argument
160 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac()
164 rc = rdma_read_gid_l2_fields(attr, NULL, smcibdev->mac[ibport - 1]); in smc_ib_fill_mac()
175 u8 ibport) in smc_ib_define_local_systemid() argument
177 memcpy(&local_systemid[2], &smcibdev->mac[ibport - 1], in smc_ib_define_local_systemid()
178 sizeof(smcibdev->mac[ibport - 1])); in smc_ib_define_local_systemid()
191 bool smc_ib_port_active(struct smc_ib_device *smcibdev, u8 ibport) in smc_ib_port_active() argument
193 return smcibdev->pattr[ibport - 1].state == IB_PORT_ACTIVE; in smc_ib_port_active()
[all …]
Dsmc_pnet.c109 int ibport; in smc_pnet_remove_by_pnetid() local
144 for (ibport = 0; ibport < SMC_MAX_PORTS; ibport++) { in smc_pnet_remove_by_pnetid()
145 if (ibdev->pnetid_by_user[ibport] && in smc_pnet_remove_by_pnetid()
148 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid()
153 ibport + 1, in smc_pnet_remove_by_pnetid()
154 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid()
155 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid()
157 ibdev->pnetid_by_user[ibport] = false; in smc_pnet_remove_by_pnetid()
480 u8 ibport = 1; in smc_pnet_enter() local
513 ibport = nla_get_u8(tb[SMC_PNETID_IBPORT]); in smc_pnet_enter()
[all …]
Dsmc_core.c73 atomic_inc(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_inc()
78 atomic_dec(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_dec()
408 if (nla_put_u8(skb, SMC_NLA_LINK_IB_PORT, link->ibport)) in smc_nl_fill_lgr_link()
735 link->ndev_ifidx = smcibdev->ndev_ifidx[link->ibport - 1]; in smcr_copy_dev_info_to_link()
747 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init()
750 lnk->ibport = ini->ib_port; in smcr_link_init()
756 lnk->path_mtu = lnk->smcibdev->pattr[lnk->ibport - 1].active_mtu; in smcr_link_init()
775 rc = smc_ib_determine_gid(lnk->smcibdev, lnk->ibport, in smcr_link_init()
881 int ibport; in smc_lgr_create() local
889 ibport = ini->smcrv2.ib_port_v2; in smc_lgr_create()
[all …]
Dsmc_ib.h86 bool smc_ib_port_active(struct smc_ib_device *smcibdev, u8 ibport);
113 int smc_ib_determine_gid(struct smc_ib_device *smcibdev, u8 ibport,
Dsmc_core.h85 u8 ibport; /* port - values 1 | 2 */ member
514 void smcr_port_add(struct smc_ib_device *smcibdev, u8 ibport);
515 void smcr_port_err(struct smc_ib_device *smcibdev, u8 ibport);
Dsmc_diag.c152 .lnk[0].ibport = link->ibport, in __smc_diag_dump()
Dsmc_llc.c468 memcpy(confllc->sender_mac, link->smcibdev->mac[link->ibport - 1], in smc_llc_send_confirm_link()
1061 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_cli_add_link()
1065 ini->ib_port = link->ibport; in smc_llc_cli_add_link()
1087 lnk_new->smcibdev->mac[lnk_new->ibport - 1], in smc_llc_cli_add_link()
1429 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_srv_add_link()
1433 ini->ib_port = link->ibport; in smc_llc_srv_add_link()
1451 link_new->smcibdev->mac[link_new->ibport-1], in smc_llc_srv_add_link()
2166 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_active()
2185 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_clear()
Dsmc_clc.c1043 memcpy(&clc->r0.lcl.mac, &link->smcibdev->mac[link->ibport - 1], in smc_clc_send_confirm_accept()