aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_sack.c
diff options
context:
space:
mode:
authorRichard Scheffenegger <rscheff@FreeBSD.org>2021-04-28 12:56:14 +0000
committerRichard Scheffenegger <rscheff@FreeBSD.org>2021-05-01 08:26:53 +0000
commitbb9dcbf1a243ac92855c0109fd922c2ba60eb691 (patch)
tree14c40131ae6fb12aedc788024ccf5195a36c40e8 /sys/netinet/tcp_sack.c
parentfb34817c686cc130449325499870e36979899801 (diff)
tcp: stop spurious rescue retransmissions and potential asserts
Reported by: pho@ MFC after: 3 days Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29970 (cherry picked from commit 48be5b976e34022862da3be69350d60e969d39e5)
Diffstat (limited to 'sys/netinet/tcp_sack.c')
-rw-r--r--sys/netinet/tcp_sack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c
index 40d63bd3832f..9187a9fc66d8 100644
--- a/sys/netinet/tcp_sack.c
+++ b/sys/netinet/tcp_sack.c
@@ -866,9 +866,11 @@ tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th)
tcp_seq highdata = tp->snd_max;
if (tp->t_flags & TF_SENTFIN)
highdata--;
- if (th->th_ack != highdata)
+ if (th->th_ack != highdata) {
+ tp->snd_fack = th->th_ack;
(void)tcp_sackhole_insert(tp, SEQ_MAX(th->th_ack,
highdata - maxseg), highdata, NULL);
+ }
}
(void) tp->t_fb->tfb_tcp_output(tp);
}