]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: common routine for CLC accept and confirm
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 10 Sep 2020 16:48:23 +0000 (18:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:24:26 +0000 (15:24 -0700)
commitaf36ce5b2b2063bd6f7ef47f29ee4089d3c499f9
tree898431ec500dbecd31a3ff6763f28c1c7dae785d
parentd764e9a4a03d744cd68dc769152b909c1e8c513a
net/smc: common routine for CLC accept and confirm

smc_clc_send_accept() and smc_clc_send_confirm() are quite similar.
Move common code into a separate function smc_clc_send_confirm_accept().
And introduce separate SMCD and SMCR struct definitions for CLC accept
resp. confirm.
No functional change.

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