]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: change pingpong threshold to 3
authorWei Wang <weiwan@google.com>
Fri, 25 Jan 2019 18:53:20 +0000 (10:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jan 2019 21:29:43 +0000 (13:29 -0800)
commitf8c8f53658928f7ed32acb954b15ca82a906e085
treef0afde54fb516f0293e849ade6c738ece48f16c1
parent5d009690eb615de7053bfa697d34e8bc7a3e15a1
tcp: change pingpong threshold to 3

In order to be more confident about an on-going interactive session, we
increment pingpong count by 1 for every interactive transaction and we
adjust TCP_PINGPONG_THRESH to 3.
This means, we only consider a session in pingpong mode after we see 3
interactive transactions, and start to activate delayed acks in quick
ack mode.
And in order to not over-count the credits, we only increase pingpong
count for the first packet sent in response for the previous received
packet.
This is mainly to prevent delaying the ack immediately after some
handshake protocol but no real interactive traffic pattern afterwards.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h
net/ipv4/tcp_output.c