Glauber Costa 4acb41903b net/tcp: Fix tcp memory limits initialization when !CONFIG_SYSCTL
sysctl_tcp_mem() initialization was moved to sysctl_tcp_ipv4.c
in commit 3dc43e3e4d0b52197d3205214fe8f162f9e0c334, since it
became a per-ns value.

That code, however, will never run when CONFIG_SYSCTL is
disabled, leading to bogus values on those fields - causing hung
TCP sockets.

This patch fixes it by keeping an initialization code in
tcp_init(). It will be overwritten by the first net namespace
init if CONFIG_SYSCTL is compiled in, and do the right thing if
it is compiled out.

It is also named properly as tcp_init_mem(), to properly signal
its non-sysctl side effect on TCP limits.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Glauber Costa <glommer@parallels.com>
Cc: David S. Miller <davem@davemloft.net>
Link: http://lkml.kernel.org/r/4F22D05A.8030604@parallels.com
[ renamed the function, tidied up the changelog a bit ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-30 12:41:06 -05:00
..
2011-03-31 11:26:23 -03:00
2011-12-28 15:06:58 -05:00
2011-07-26 16:49:47 -07:00
2011-05-05 11:10:14 -07:00
2010-06-03 03:21:52 -07:00
2010-10-27 11:37:32 -07:00
2012-01-17 10:31:12 -05:00
2011-03-31 11:26:23 -03:00
2011-12-03 09:35:05 -08:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2010-10-25 13:09:45 -07:00
2011-12-11 18:25:16 -05:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2010-06-03 03:21:52 -07:00
2011-05-17 14:16:58 -04:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00
2011-11-22 16:43:32 -05:00