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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Sep 2023 18:31:42 +0000 (19:31 +0100)
commit6912e724832c47bb381eb1bd1e483ec8df0d0f0f
tree8cfa06332a3c59d7869e5230c0f730320cf30ef0
parent88e69af061f2e061a68751ef9cad47a674527a1b
net/smc: bugfix for smcr v2 server connect success statistic

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>
net/smc/smc_stats.h