diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index b3110fc1570e..f6d279a95f4b 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -995,9 +995,8 @@ unsigned int tcp_current_mss(struct sock *sk, int large_allowed) | |||
995 | static void tcp_cwnd_validate(struct sock *sk) | 995 | static void tcp_cwnd_validate(struct sock *sk) |
996 | { | 996 | { |
997 | struct tcp_sock *tp = tcp_sk(sk); | 997 | struct tcp_sock *tp = tcp_sk(sk); |
998 | __u32 packets_out = tp->packets_out; | ||
999 | 998 | ||
1000 | if (packets_out >= tp->snd_cwnd) { | 999 | if (tp->packets_out >= tp->snd_cwnd) { |
1001 | /* Network is feed fully. */ | 1000 | /* Network is feed fully. */ |
1002 | tp->snd_cwnd_used = 0; | 1001 | tp->snd_cwnd_used = 0; |
1003 | tp->snd_cwnd_stamp = tcp_time_stamp; | 1002 | tp->snd_cwnd_stamp = tcp_time_stamp; |