Searched refs:ibport (Results 1 – 8 of 8) sorted by relevance
/net/smc/ |
D | smc_ib.c | 54 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 …]
|
D | smc_pnet.c | 109 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 …]
|
D | smc_core.c | 73 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 …]
|
D | smc_ib.h | 86 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,
|
D | smc_core.h | 85 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);
|
D | smc_diag.c | 152 .lnk[0].ibport = link->ibport, in __smc_diag_dump()
|
D | smc_llc.c | 468 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()
|
D | smc_clc.c | 1043 memcpy(&clc->r0.lcl.mac, &link->smcibdev->mac[link->ibport - 1], in smc_clc_send_confirm_accept()
|