]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: cleanup of get vlan id
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 12 Apr 2019 10:57:27 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commit855030d9c696807316d68a5a839a30e716b14d94
tree290adf22a7dfa7e9f704c64a8a62072e9cec0d70
parent267acbd9e6b75ab0bfb88246bb8d9f0964530f43
net/smc: cleanup of get vlan id

The vlan_id of the underlying CLC socket was retrieved two times
during processing of the listen handshaking. Change this to get the
vlan id one time in connect and in listen processing, and reuse the id.
And add a new CLC DECLINE return code for the case when the retrieval
of the vlan id failed.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_clc.h
net/smc/smc_core.c