mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
net/smc: return the right falback reason when prefix checks fail
commit4abbd2e3c1upstream. 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:e49300a6bf("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d994502fdc
commit
753ef5ef4c
@@ -2322,7 +2322,7 @@ static int smc_listen_find_device(struct smc_sock *new_smc,
|
||||
smc_find_ism_store_rc(rc, ini);
|
||||
return (!rc) ? 0 : ini->rc;
|
||||
}
|
||||
return SMC_CLC_DECL_NOSMCDEV;
|
||||
return prfx_rc;
|
||||
}
|
||||
|
||||
/* listen worker: finish RDMA setup */
|
||||
|
||||
Reference in New Issue
Block a user