aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index bc2d5f70966e..519bd24e0d3b 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -289,8 +289,8 @@ static int __tcp_grow_window(const struct sock *sk, const struct sk_buff *skb)
289{ 289{
290 struct tcp_sock *tp = tcp_sk(sk); 290 struct tcp_sock *tp = tcp_sk(sk);
291 /* Optimize this! */ 291 /* Optimize this! */
292 int truesize = tcp_win_from_space(skb->truesize)/2; 292 int truesize = tcp_win_from_space(skb->truesize) >> 1;
293 int window = tcp_win_from_space(sysctl_tcp_rmem[2])/2; 293 int window = tcp_win_from_space(sysctl_tcp_rmem[2]) >> 1;
294 294
295 while (tp->rcv_ssthresh <= window) { 295 while (tp->rcv_ssthresh <= window) {
296 if (truesize <= skb->len) 296 if (truesize <= skb->len)