]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: improve smc_conn_create reason codes
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 12 Apr 2019 10:57:30 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commita5bce660554a544e90a630681d2c7b4e84ee5359
tree7ded9f83b0ed0f263fadb9c923d6d4de811fea5f
parent7249a2ca13ab035dce40fc564bdfd01176b0ae4b
net/smc: improve smc_conn_create reason codes

Rework smc_conn_create() to always return a valid DECLINE reason code.
This removes the need to translate the return codes on 4 different
places and allows to easily add more detailed return codes by changing
smc_conn_create() only.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_clc.h
net/smc/smc_core.c
net/smc/smc_core.h