summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/enetc/enetc.c
diff options
context:
space:
mode:
authorRyan Sharpelletti <sharpelletti@google.com>2020-11-16 17:44:13 +0000
committerJakub Kicinski <kuba@kernel.org>2020-11-17 11:03:22 -0800
commit1b9e2a8c99a5c021041bfb2d512dc3ed92a94ffd (patch)
tree93791d0c260842e895e449e4406b7f8b49728a70 /drivers/net/ethernet/freescale/enetc/enetc.c
parent3d5179458d22dc0b4fdc724e4bed4231a655112a (diff)
downloadlinux-stable-1b9e2a8c99a5c021041bfb2d512dc3ed92a94ffd.tar.gz
linux-stable-1b9e2a8c99a5c021041bfb2d512dc3ed92a94ffd.tar.bz2
linux-stable-1b9e2a8c99a5c021041bfb2d512dc3ed92a94ffd.zip
tcp: only postpone PROBE_RTT if RTT is < current min_rtt estimate
During loss recovery, retransmitted packets are forced to use TCP timestamps to calculate the RTT samples, which have a millisecond granularity. BBR is designed using a microsecond granularity. As a result, multiple RTT samples could be truncated to the same RTT value during loss recovery. This is problematic, as BBR will not enter PROBE_RTT if the RTT sample is <= the current min_rtt sample, meaning that if there are persistent losses, PROBE_RTT will constantly be pushed off and potentially never re-entered. This patch makes sure that BBR enters PROBE_RTT by checking if RTT sample is < the current min_rtt sample, rather than <=. The Netflix transport/TCP team discovered this bug in the Linux TCP BBR code during lab tests. Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control") Signed-off-by: Ryan Sharpelletti <sharpelletti@google.com> Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: Yuchung Cheng <ycheng@google.com> Link: https://lore.kernel.org/r/20201116174412.1433277-1-sharpelletti.kdev@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale/enetc/enetc.c')
0 files changed, 0 insertions, 0 deletions