mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
tcp: clean PRR state after ECN congestion recovery.
PRR state was not properly reset on subsequent ECN CE events. Clean up after local transmission failures too. Reviewed by: tuexen, cc, #transport MFC after: 3 days Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D43170
This commit is contained in:
parent
f4574e2dc5
commit
429f14f83a
|
@ -483,6 +483,7 @@ cc_post_recovery(struct tcpcb *tp, struct tcphdr *th)
|
|||
/* XXXLAS: EXIT_RECOVERY ? */
|
||||
tp->t_bytes_acked = 0;
|
||||
tp->sackhint.delivered_data = 0;
|
||||
tp->sackhint.prr_delivered = 0;
|
||||
tp->sackhint.prr_out = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1663,6 +1663,8 @@ tcp_default_output(struct tcpcb *tp)
|
|||
if (flags & TH_FIN)
|
||||
tp->snd_nxt--;
|
||||
}
|
||||
if (IN_RECOVERY(tp->t_flags))
|
||||
tp->sackhint.prr_out -= len;
|
||||
}
|
||||
SOCKBUF_UNLOCK_ASSERT(&so->so_snd); /* Check gotos. */
|
||||
switch (error) {
|
||||
|
|
Loading…
Reference in a new issue