net/smc: return the right falback reason when prefix checks fail
authorDust Li <dust.li@linux.alibaba.com>
Thu, 12 Oct 2023 12:37:29 +0000 (20:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Oct 2023 23:37:40 +0000 (16:37 -0700)
commit4abbd2e3c1db671fa1286390f1310aec78386f1d
treed608bd47f16e5e327445f387646e2b19222f2390
parent883f0dc0e4f6b627c0e91098724851da2eabe697
net/smc: return the right falback reason when prefix checks fail

In the smc_listen_work(), if smc_listen_prfx_check() failed,
the real reason: SMC_CLC_DECL_DIFFPREFIX was dropped, and
SMC_CLC_DECL_NOSMCDEV was returned.

Althrough this is also kind of SMC_CLC_DECL_NOSMCDEV, but return
the real reason is much friendly for debugging.

Fixes: e49300a6bf62 ("net/smc: add listen processing for SMC-Rv2")
Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Link: https://lore.kernel.org/r/20231012123729.29307-1-dust.li@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/af_smc.c