net/smc: retrieve v2 gid from IB device
In smc_ib.c, scan for RoCE devices that support UDP encapsulation. Find an eligible device and check that there is a route to the remote peer. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8ade200c26
commit
24fb68111d
@@ -715,7 +715,9 @@ int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk,
|
||||
lnk->psn_initial = rndvec[0] + (rndvec[1] << 8) +
|
||||
(rndvec[2] << 16);
|
||||
rc = smc_ib_determine_gid(lnk->smcibdev, lnk->ibport,
|
||||
ini->vlan_id, lnk->gid, &lnk->sgid_index);
|
||||
ini->vlan_id, lnk->gid, &lnk->sgid_index,
|
||||
lgr->smc_version == SMC_V2 ?
|
||||
&ini->smcrv2 : NULL);
|
||||
if (rc)
|
||||
goto out;
|
||||
rc = smc_llc_link_init(lnk);
|
||||
|
||||
Reference in New Issue
Block a user