]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:25 +0000 (20:59 +0200)
commit62300fd8951b95ce2c98562f0c44b58d53fc1a1b
treece84c5b79e2c5ed8765a525c2b78180a530096d0
parentee240c11704b6c7752e561b7a565105444ecfd4a
net/smc: send directly on setting TCP_NODELAY

commit 0608e6b29132f048e0f8224b82806aa0598e237a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/smc/af_smc.c