aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhengchao Shao <[email protected]>2024-07-30 09:25:04 +0800
committerDavid S. Miller <[email protected]>2024-07-31 11:48:58 +0100
commit5a79575711264b98b435e08107c9e5bf129df210 (patch)
tree3a5b1919851510d4ff297811f953f28ff5a2a6f3
parent1018825a9539a67aa381ff033a49355eb03bd84d (diff)
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]>
-rw-r--r--net/smc/af_smc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index 73a875573e7a..83f5a1849971 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -1523,10 +1523,6 @@ static int __smc_connect(struct smc_sock *smc)
ini->smcd_version &= ~SMC_V1;
ini->smcr_version = 0;
ini->smc_type_v1 = SMC_TYPE_N;
- if (!ini->smcd_version) {
- rc = SMC_CLC_DECL_GETVLANERR;
- goto fallback;
- }
}
rc = smc_find_proposal_devices(smc, ini);