net/smc: bugfix for smcr v2 server connect success statistic
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>
Fri, 8 Sep 2023 03:31:42 +0000 (11:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:53 +0000 (14:56 +0200)
commit797d75bd575cbc5263b870adad900ce0ae69cf06
treedb20a99e564fd888b987f3af846090265c0feed0
parentb08a4938229dbb530a35c41b83002a1457c6ff49
net/smc: bugfix for smcr v2 server connect success statistic

[ Upstream commit 6912e724832c47bb381eb1bd1e483ec8df0d0f0f ]

In the macro SMC_STAT_SERV_SUCC_INC, the smcd_version is used
to determin whether to increase the v1 statistic or the v2
statistic. It is correct for SMCD. But for SMCR, smcr_version
should be used.

Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_stats.h