[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071009.130237.122618431.davem@davemloft.net>
Date: Tue, 09 Oct 2007 13:02:37 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xemul@...nvz.org
Cc: netdev@...r.kernel.org, devel@...nvz.org
Subject: Re: [PATCH][NETNS] Don't memset() netns to zero manually
From: Pavel Emelyanov <xemul@...nvz.org>
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 new nets with the
> kmem_cache_zalloc().
>
> Signed-off-by: Pavel Emelyanov <xemul@...nvz.org>
Applied, thanks Pavel!
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists