mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Ensure cwnd doesn't shrink to zero with PRR
Under some circumstances, PRR may end up with a fully collapsed cwnd when finalizing the loss recovery. Reviewed By: #transport, kbowling Reported by: Liang Tian MFC after: 1 week Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D28780
This commit is contained in:
parent
248a47a4c2
commit
853fd7a2e3
1 changed files with 2 additions and 2 deletions
|
|
@ -3990,8 +3990,8 @@ tcp_prr_partialack(struct tcpcb *tp, struct tcphdr *th)
|
|||
* If there is going to be a SACK retransmission, adjust snd_cwnd
|
||||
* accordingly.
|
||||
*/
|
||||
tp->snd_cwnd = tp->snd_nxt - tp->snd_recover +
|
||||
tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg);
|
||||
tp->snd_cwnd = max(maxseg, (int64_t)tp->snd_nxt - tp->snd_recover +
|
||||
tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg));
|
||||
tp->t_flags |= TF_ACKNOW;
|
||||
(void) tcp_output(tp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue