]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit336ba09f2ef71b82f07c1200be0ddf4eb923d69f
treeecf6ba43cddc0809c6d3652c30ba466dc016baf2
parentd1a22509547b424866863e191ef9b2ac0762ad17
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