]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: account total lost packets properly
authorYuchung Cheng <ycheng@google.com>
Thu, 1 Oct 2020 21:05:18 +0000 (14:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 23:57:18 +0000 (16:57 -0700)
commitc8e27ed12d9edbb3e70810899a2d4e5739d0ddc3
tree3fde794293eeb58a5342be67376c60061471848b
parent2a018c955ed2dffaa440f392c0e3ee82b54d7257
tcp: account total lost packets properly

The retransmission refactoring patch
798a841ecb11 ("tcp: simplify tcp_mark_skb_lost")
does not properly update the total lost packet counter which may
break the policer mode in BBR. This patch fixes it.

Fixes: 798a841ecb11 ("tcp: simplify tcp_mark_skb_lost")
Reported-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c