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)
commit3d9725a6a1330bed78f452ba3b171b24d9b83ac7
tree898431ec500dbecd31a3ff6763f28c1c7dae785d
parent6bb14e48ee8d8ec23d191fd91de33f09da1ecce4
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