| Submitter | Eric Dumazet |
|---|---|
| Date | Feb. 2, 2013, 3:14 p.m. |
| Message ID | <1359818075.30177.78.camel@edumazet-glaptop> |
| Download | mbox | patch |
| Permalink | /patch/217674/ |
| State | Superseded |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 8aca4ee..37760df 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -3506,7 +3506,7 @@ static bool tcp_process_frto(struct sock *sk, int flag) if (!(flag & FLAG_DATA_ACKED) && (tp->frto_counter == 1)) { /* Prevent sending of new data. */ tp->snd_cwnd = min(tp->snd_cwnd, - tcp_packets_in_flight(tp)); + max(tcp_packets_in_flight(tp), 1U)); return true; }