]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: keep vlan_id for SMC-R in smc_listen_work()
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 23 Oct 2019 13:44:06 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Oct 2019 02:18:21 +0000 (19:18 -0700)
commit8aaf629c3b03613f601961d4bd35d491a106d006
tree0acb73be9354c41816a62e3b01fb34d94ba5f203
parent60a51bed070ce82d8f2f38ca7cdfe62aab493c8a
net/smc: keep vlan_id for SMC-R in smc_listen_work()

Creating of an SMC-R connection with vlan-id fails, because
smc_listen_work() determines the vlan_id of the connection,
saves it in struct smc_init_info ini, but clears the ini area
again if SMC-D is not applicable.
This patch just resets the ISM device before investigating
SMC-R availability.

Fixes: 83006418efee ("net/smc: consolidate function parameters")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c