Include new data sent in PRR calculation

Reviewed By:	#transport, kbowling
MFC after:	3 days
Sponsored by:	NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D28941
This commit is contained in:
Richard Scheffenegger 2021-02-26 22:30:33 +01:00
parent bc3bba70d8
commit 9e83a6a556

View File

@ -2595,7 +2595,8 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so,
imax(1, tp->snd_nxt - tp->snd_una);
snd_cnt = howmany((long)tp->sackhint.prr_delivered *
tp->snd_ssthresh, tp->sackhint.recover_fs) -
tp->sackhint.sack_bytes_rexmit;
(tp->sackhint.sack_bytes_rexmit +
(tp->snd_nxt - tp->snd_recover));
} else {
if (V_tcp_do_prr_conservative)
limit = tp->sackhint.prr_delivered -
@ -3969,7 +3970,8 @@ tcp_prr_partialack(struct tcpcb *tp, struct tcphdr *th)
imax(1, tp->snd_nxt - tp->snd_una);
snd_cnt = howmany((long)tp->sackhint.prr_delivered *
tp->snd_ssthresh, tp->sackhint.recover_fs) -
tp->sackhint.sack_bytes_rexmit;
(tp->sackhint.sack_bytes_rexmit +
(tp->snd_nxt - tp->snd_recover));
} else {
if (V_tcp_do_prr_conservative)
limit = tp->sackhint.prr_delivered -