]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix matching of existing link groups
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 18 Nov 2020 21:40:37 +0000 (22:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Nov 2020 18:59:19 +0000 (10:59 -0800)
commit1ca7b80dab4296d305f5c1981d84328214d810b5
tree262be117490f7112e6058e20fcb2af7bdc41e855
parentda329053453a5dc96b1b0b0e623d7f64735fc5df
net/smc: fix matching of existing link groups

With the multi-subnet support of SMC-Dv2 the match for existing link
groups should not include the vlanid of the network device.
Set ini->smcd_version accordingly before the call to smc_conn_create()
and use this value in smc_conn_create() to skip the vlanid check.

Fixes: f2ca49d95ce2 ("net/smc: determine accepted ISM devices")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/af_smc.c
net/smc/smc_core.c