]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9eee80e8f8abbaf971a3aa13cb20c9957da5cf5d
tree931d80e4cf840fc9ed036a3406799a546dda0518
parent4b5ed4784958011d5ffd4d205a125e2641cb82ba
tcp: use TCP_DEFAULT_INIT_RCVWND in tcp_fixup_rcvbuf()

Since commit 5558b4544b1 (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 5558b4544b1 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