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

First set of functions to process an ADD_LINK LLC request as an SMC
client. Find an alternate IB device, determine the new link group type
and get the index for the new link. Then ready the link, map the buffers
and send an ADD_LINK LLC response. If any error occurs, send a reject
LLC message and terminate the processing.
Add smc_llc_alloc_alt_link() to find a free link index for a new link,
depending on the new link group type.

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