tcp: use TCP_DEFAULT_INIT_RCVWND in tcp_fixup_rcvbuf()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 20 Oct 2011 20:53:56 +0000 (16:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2011 20:54:51 +0000 (16:54 -0400)
Since commit 356f039822b (TCP: increase default initial receive
window.), we allow sender to send 10 (TCP_DEFAULT_INIT_RCVWND) segments.

Change tcp_fixup_rcvbuf() to reflect this change, even if no real change
is expected, since sysctl_tcp_rmem[1] = 87380 and this value
is bigger than tcp_fixup_rcvbuf() computed rcvmem (~23720)

Note: Since commit 356f039822b limited default window to maximum of
10*1460 and 2*MSS, we use same heuristic in this patch.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found