summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_core.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-05-03 14:38:40 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-03 16:05:15 -0700
commit336ba09f2ef71b82f07c1200be0ddf4eb923d69f (patch)
treeecf6ba43cddc0809c6d3652c30ba466dc016baf2 /net/smc/smc_core.c
parentd1a22509547b424866863e191ef9b2ac0762ad17 (diff)
downloadlinux-stable-336ba09f2ef71b82f07c1200be0ddf4eb923d69f.tar.gz
linux-stable-336ba09f2ef71b82f07c1200be0ddf4eb923d69f.tar.bz2
linux-stable-336ba09f2ef71b82f07c1200be0ddf4eb923d69f.zip
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>
Diffstat (limited to 'net/smc/smc_core.c')
-rw-r--r--net/smc/smc_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c
index 60c708f6de51..2f8faa9c9e8e 100644
--- a/net/smc/smc_core.c
+++ b/net/smc/smc_core.c
@@ -273,8 +273,8 @@ static u8 smcr_next_link_id(struct smc_link_group *lgr)
return link_id;
}
-static int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk,
- u8 link_idx, struct smc_init_info *ini)
+int smcr_link_init(struct smc_link_group *lgr, struct smc_link *lnk,
+ u8 link_idx, struct smc_init_info *ini)
{
u8 rndvec[3];
int rc;