net/smc: unify the structs of accept or confirm message for v1 and v2
authorWen Gu <guwen@linux.alibaba.com>
Tue, 19 Dec 2023 14:26:09 +0000 (22:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2023 20:24:33 +0000 (20:24 +0000)
commit9505450d55b0f7809fe63c36ad9339a909461c87
tree7cd6a5a202f52ed773edba1738ecfc12ba56e0d0
parent5205ac4483b630e47c65f192a3ac19be7a8ea648
net/smc: unify the structs of accept or confirm message for v1 and v2

The structs of CLC accept and confirm messages for SMCv1 and SMCv2 are
separately defined and often casted to each other in the code, which may
increase the risk of errors caused by future divergence of them. So
unify them into one struct for better maintainability.

Suggested-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Alexandra Winter <wintera@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