tcp: Bug fix in initialization of receive window.
authorNandita Dukkipati <nanditad@google.com>
Fri, 3 Dec 2010 13:33:44 +0000 (13:33 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:25 +0000 (13:58 -0800)
commitdea96398b30bf6b5d966a9133d0ad30cd1aa946b
tree1ff141cb6cb7910ee0da9dfea628a13d343fac85
parent60352f160a1a9d430f119a40924b0c3338ed5449
tcp: Bug fix in initialization of receive window.

[ Upstream commit b1afde60f2b9ee8444fba4e012dc99a3b28d224d ]

The bug has to do with boundary checks on the initial receive window.
If the initial receive window falls between init_cwnd and the
receive window specified by the user, the initial window is incorrectly
brought down to init_cwnd. The correct behavior is to allow it to
remain unchanged.

Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp_output.c