OSDN Git Service

net/smc: introduce smc_pnet_find_alt_roce()
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 1 May 2020 10:48:11 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:05 +0000 (16:20 -0700)
commit6c868a3edc70ec9819d6a94268625d25e6bc9587
tree4df8cf1096ba6527772313a68275f5ef7c4e1c75
parent33d203302d1cc744a13349d2576c985feb469220
net/smc: introduce smc_pnet_find_alt_roce()

Introduce a new function in smc_pnet.c that searches for an alternate
IB device, using an existing link group and a primary IB device. The
alternate IB device needs to be active and must have the same PNETID
as the link group.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_pnet.c
net/smc/smc_pnet.h