Skip to content

Commit 5a79575

Browse files
zhengchaoshaodavem330
authored andcommitted
net/smc: remove the fallback in __smc_connect
When the SMC client begins to connect to server, smcd_version is set to SMC_V1 + SMC_V2. If fail to get VLAN ID, only SMC_V2 information is left in smcd_version. And smcd_version will not be changed to 0. Therefore, remove the fallback caused by the failure to get VLAN ID. Signed-off-by: Zhengchao Shao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1018825 commit 5a79575

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/smc/af_smc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,10 +1523,6 @@ static int __smc_connect(struct smc_sock *smc)
15231523
ini->smcd_version &= ~SMC_V1;
15241524
ini->smcr_version = 0;
15251525
ini->smc_type_v1 = SMC_TYPE_N;
1526-
if (!ini->smcd_version) {
1527-
rc = SMC_CLC_DECL_GETVLANERR;
1528-
goto fallback;
1529-
}
15301526
}
15311527

15321528
rc = smc_find_proposal_devices(smc, ini);

0 commit comments

Comments
 (0)