]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: send directly on setting TCP_NODELAY
authorDust Li <dust.li@linux.alibaba.com>
Tue, 1 Mar 2022 09:43:59 +0000 (17:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2022 14:25:12 +0000 (14:25 +0000)
commit0608e6b29132f048e0f8224b82806aa0598e237a
tree2a9558e0e10ac1acb012b7a32d5fd3e93c61288d
parent72ba11079cbecb487d632a47e74ebe9394ea9dc8
net/smc: send directly on setting TCP_NODELAY

In commit cdc1b668fa2e("net/smc: Send directly when
TCP_CORK is cleared"), we don't use delayed work
to implement cork.

This patch use the same algorithm, removes the
delayed work when setting TCP_NODELAY and send
directly in setsockopt(). This also makes the
TCP_NODELAY the same as TCP.

Cc: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c