]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: first part of add link processing as SMC server
authorKarsten Graul <kgraul@linux.ibm.com>
Sun, 3 May 2020 12:38:43 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 23:06:40 +0000 (16:06 -0700)
commitdb01abfef020964a7ecc9ce49977afd0d3ebe606
tree8118c5bfab938f975217ae2242d3c575e721a5be
parent14706195f3b08812012eec8c41125eba68d0e888
net/smc: first part of add link processing as SMC server

First set of functions to process an ADD_LINK LLC request as an SMC
server. Find an alternate IB device, determine the new link group type
and get the index for the new link. Then initialize the link and send
the ADD_LINK LLC message to the peer. Save the contents of the response,
ready the link, map all used buffers and register the buffers with the
IB device. If any error occurs, stop the processing and clear the link.
And call smc_llc_srv_add_link() in af_smc.c to start second link
establishment after the initial link of a link group was created.

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/af_smc.c
net/smc/smc_llc.c
net/smc/smc_llc.h