]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: consistently check retransmit hint
authorYuchung Cheng <ycheng@google.com>
Fri, 25 Sep 2020 17:04:28 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Sep 2020 00:17:14 +0000 (17:17 -0700)
commit5f7411c5a432f713c16256593e51a5191998418b
tree74b07d29dec1e051a9481eb7bbc5954185576c76
parent6efd86e861753ff53ca70b9e98bbe7dd47cc0c4e
tcp: consistently check retransmit hint

tcp_simple_retransmit() used for path MTU discovery may not adjust
the retransmit hint properly by deducting retrans_out before checking
it to adjust the hint. This patch fixes this by a correct routine
tcp_mark_skb_lost() already used by the RACK loss detection.

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
net/ipv4/tcp_recovery.c