]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: allocate index for a new link
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 1 May 2020 10:48:12 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:05 +0000 (16:20 -0700)
commit6a30faa9d3a62a0c8e0211e780999b8902e5ada7
tree4b01341b843dbde750926e0987d70e87af1f2046
parentc9cc5e693ef1c4af1b00e864d15f6f7d1d65dc44
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>
net/smc/smc_core.h
net/smc/smc_llc.c