net/smc: allow fallback after clc timeouts
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 22 Nov 2018 09:26:37 +0000 (10:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:20:32 +0000 (17:20 -0800)
commit9ed28556a388fdb894bdf9bd64c05cf6e7783ba3
tree1d26d17ba325140fa161657244f1e55b2f4c0c99
parent6ae36bff3f511d8b24ebbc126e3f1f23ac202ef4
net/smc: allow fallback after clc timeouts

If connection initialization fails for the LLC CONFIRM LINK or the
LLC ADD LINK step, fallback to TCP should be enabled. Thus
the negative return code -EAGAIN should switch to a positive timeout
reason code in these cases, and the internal CLC socket should
not have a set sk_err.

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.c