]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: restore smcd_version when all ISM V2 devices failed to init
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 7 Oct 2020 20:57:43 +0000 (22:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Oct 2020 01:15:47 +0000 (18:15 -0700)
commit1e782c9842ced9f1831ee732b4680e0126514d9d
treec0af2487bb98530e54e8401d2cdc72bac1815233
parent8b5a2e6703cf8491b93fcb60b7519eeecf9dd9bc
net/smc: restore smcd_version when all ISM V2 devices failed to init

Field ini->smcd_version is set to SMC_V2 before calling
smc_listen_ism_init(). This clears the V1 bit that may be set. When all
matching ISM V2 devices fail to initialize then the smcd_version field
needs to get restored to allow any possible V1 devices to initialize.
And be consistent, always go to the not_found label when no device was
found.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/af_smc.c