]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: handle sockopts forcing fallback
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 26 Apr 2018 15:18:21 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:02:52 +0000 (14:02 -0400)
commit8d716f2265c8967e2a0bd6b45ba5ae6b79d942b0
tree6e517a158d435163e9ef6db6f3e3ed7fa33b8774
parent376185d480b7825284731e20bb26fbc338571c52
net/smc: handle sockopts forcing fallback

Several TCP sockopts do not work for SMC. One example are the
TCP_FASTOPEN sockopts, since SMC-connection setup is based on the TCP
three-way-handshake.
If the SMC socket is still in state SMC_INIT, such sockopts trigger
fallback to TCP. Otherwise an error is returned.

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