Skip to content

Commit 4abbd2e

Browse files
Dust Likuba-moo
authored andcommitted
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: e49300a ("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>
1 parent 883f0dc commit 4abbd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/smc/af_smc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ static int smc_listen_find_device(struct smc_sock *new_smc,
23622362
smc_find_ism_store_rc(rc, ini);
23632363
return (!rc) ? 0 : ini->rc;
23642364
}
2365-
return SMC_CLC_DECL_NOSMCDEV;
2365+
return prfx_rc;
23662366
}
23672367

23682368
/* listen worker: finish RDMA setup */

0 commit comments

Comments
 (0)