Page MenuHomeFreeBSD

D28972.diff
No OneTemporary

D28972.diff

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -2786,6 +2786,16 @@
tcp_newreno_partial_ack(tp, th);
} else
cc_post_recovery(tp, th);
+ } else if (IN_CONGRECOVERY(tp->t_flags)) {
+ if (SEQ_LT(th->th_ack, tp->snd_recover)) {
+ if (V_tcp_do_prr) {
+ tp->sackhint.delivered_data = BYTES_THIS_ACK(tp, th);
+ tp->snd_fack = th->th_ack;
+ tcp_do_prr_ack(tp, th);
+ (void) tcp_output(tp);
+ }
+ } else
+ cc_post_recovery(tp, th);
}
/*
* If we reach this point, ACK is not a duplicate,
@@ -3954,8 +3964,12 @@
* If there is going to be a SACK retransmission, adjust snd_cwnd
* accordingly.
*/
- tp->snd_cwnd = imax(maxseg, tp->snd_nxt - tp->snd_recover +
- tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg));
+ if (IN_FASTRECOVERY(tp->t_flags)) {
+ tp->snd_cwnd = imax(maxseg, tp->snd_nxt - tp->snd_recover +
+ tp->sackhint.sack_bytes_rexmit + (snd_cnt * maxseg));
+ } else if (IN_CONGRECOVERY(tp->t_flags))
+ tp->snd_cwnd = imax(maxseg, pipe - del_data +
+ (snd_cnt * maxseg));
}
/*

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 9:35 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14735064
Default Alt Text
D28972.diff (1 KB)

Event Timeline