]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: no tx work trigger for fallback sockets
authorUrsula Braun <ubraun@linux.ibm.com>
Tue, 15 May 2018 15:04:54 +0000 (17:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:49:19 +0000 (11:49 -0400)
commitac0c641159dfd9dfcf3f7485851b8d8170caebbb
tree374767c95aa730325e9f13226019d36cad6008a1
parent3b248cbd092ac3a3667f00e358014ee2964c67c6
net/smc: no tx work trigger for fallback sockets

If TCP_NODELAY is set or TCP_CORK is reset, setsockopt triggers the
tx worker. This does not make sense, if the SMC socket switched to
the TCP fallback when the connection is created. This patch adds
the additional check for the fallback case.

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