]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "tcp: change pingpong threshold to 3"
authorWei Wang <weiwan@google.com>
Thu, 21 Jul 2022 20:44:04 +0000 (20:44 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 22:09:10 +0000 (15:09 -0700)
commit0a598b3c3634a76f96c19daaa0558f8d2c95ceef
tree1abb5cdb4189b78d65eda21b514448946d3bc54c
parent80e73db2c77a6eebe0479fb50ad5d5a87e455fbb
Revert "tcp: change pingpong threshold to 3"

This reverts commit eff4cffab6c59678a84b0ba30639b8b0da1725e6.

This to-be-reverted commit was meant to apply a stricter rule for the
stack to enter pingpong mode. However, the condition used to check for
interactive session "before(tp->lsndtime, icsk->icsk_ack.lrcvtime)" is
jiffy based and might be too coarse, which delays the stack entering
pingpong mode.
We revert this patch so that we no longer use the above condition to
determine interactive session, and also reduce pingpong threshold to 1.

Fixes: eff4cffab6c5 ("tcp: change pingpong threshold to 3")
Reported-by: LemmyHuang <hlm3280@163.com>
Suggested-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220721204404.388396-1-weiwan@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_connection_sock.h
net/ipv4/tcp_output.c