Re: [PATCH][NETNS] Don't memset() netns to zero manually

2007-10-09 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Tue, 09 Oct 2007 15:48:19 +0400 > The newly created net namespace is set to 0 with memset() > in setup_net(). The setup_net() is also called for the > init_net_ns(), which is zeroed naturally as a global var. > > So remove this memset and allocate n

[PATCH][NETNS] Don't memset() netns to zero manually

2007-10-09 Thread Pavel Emelyanov
The newly created net namespace is set to 0 with memset() in setup_net(). The setup_net() is also called for the init_net_ns(), which is zeroed naturally as a global var. So remove this memset and allocate new nets with the kmem_cache_zalloc(). Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]>