diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2021-10-16 12:37:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-16 16:58:13 +0300 |
commit | 24fb68111d4509524b483b2577f1b20a24f5fdfd (patch) | |
tree | 9b6f1e91bc483a6e132cd354ebde235f46df8c95 /net/smc/smc_core.c | |
parent | 8ade200c269f8530efde05b616801ed0612d7d72 (diff) | |
download | linux-24fb68111d4509524b483b2577f1b20a24f5fdfd.tar.xz |
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>
Diffstat (limited to 'net/smc/smc_core.c')
-rw-r--r-- | net/smc/smc_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index a081582e5669..6bbd71de6bc0 100644 --- a/net/smc/smc_core.c +++ b/net/smc/smc_core.c @@ -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); |