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)
commite9266a02b7e6542355431955075b4e688962fc0a
tree931d80e4cf840fc9ed036a3406799a546dda0518
parent30d3c128eafd2277ca2bb4b62845f25ad9295c12
tcp: use TCP_DEFAULT_INIT_RCVWND in tcp_fixup_rcvbuf()

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>
net/ipv4/tcp_input.c