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)
commit9cd8b6c90529344694f0d941841c08e2ee5d9a82
tree3fde794293eeb58a5342be67376c60061471848b
parent223b32db00a8d68b93985bd212a3bfc48fdb8ac0
tcp: account total lost packets properly

The retransmission refactoring patch
686989700cab ("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: 686989700cab ("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