]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/smc: remove the fallback in __smc_connect
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 30 Jul 2024 01:25:04 +0000 (09:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 10:48:58 +0000 (11:48 +0100)
commit5a79575711264b98b435e08107c9e5bf129df210
tree3a5b1919851510d4ff297811f953f28ff5a2a6f3
parent1018825a9539a67aa381ff033a49355eb03bd84d
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 <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c