diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-05-01 12:48:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-01 16:20:05 -0700 |
commit | 8574cf4055ab44724ee9a4c30921d3ed853d787c (patch) | |
tree | 4b01341b843dbde750926e0987d70e87af1f2046 /net/smc/smc_core.h | |
parent | 6c868a3edc70ec9819d6a94268625d25e6bc9587 (diff) |
net/smc: allocate index for a new link
Add smc_llc_alloc_alt_link() to find a free link index for a new link,
depending on the new link group type. And update constants for the
maximum number of links to 3 (2 symmetric and 1 dangling asymmetric link).
These maximum numbers are the same as used by other implementations of the
SMC-R protocol.
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.h')
-rw-r--r-- | net/smc/smc_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h index da3cddbd1651..eb27f2eb7c8c 100644 --- a/net/smc/smc_core.h +++ b/net/smc/smc_core.h @@ -128,7 +128,7 @@ struct smc_link { /* For now we just allow one parallel link per link group. The SMC protocol * allows more (up to 8). */ -#define SMC_LINKS_PER_LGR_MAX 1 +#define SMC_LINKS_PER_LGR_MAX 3 #define SMC_SINGLE_LINK 0 #define SMC_FIRST_CONTACT 1 /* first contact to a peer */ |