]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/smc/af_smc.c
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)
commitee9dfbef02d186a90f3a4876b276701966a92d10
tree6e517a158d435163e9ef6db6f3e3ed7fa33b8774
parent3382576106014bf865d341efab3d94fb28d1fc63
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