]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit7a62725a50e0282ed90185074c769ce2ecb16e59
tree7ded9f83b0ed0f263fadb9c923d6d4de811fea5f
parent9aa68d298c80d11a987691258ff92fd67e224af3
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