]> asedeno.scripts.mit.edu Git - linux.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)
commitfba7e8ef513ce7309d62eb4999b640100b6db06f
tree290adf22a7dfa7e9f704c64a8a62072e9cec0d70
parentbc36d2fc93eb2eaef3ab7fbe40d9fc1c5e8bf969
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