]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c5a8a79ffce6d77f1e381ef18cfa49f3fa136f9
tree4df8cf1096ba6527772313a68275f5ef7c4e1c75
parentd3ead8f01d5a989d06de8e60b19a131d4492ca7b
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