OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][NETNS] Don't memset() netns to zero manually
Re: [PATCH][NETNS] Don't memset() netns to zero manually [message #21480 is a reply to message #21457] Tue, 09 October 2007 20:02 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.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@openvz.org>

Applied, thanks Pavel!
 
Read Message
Read Message
Previous Topic: [patch 2/2][NETNS49][IPV4][UDPLITE] activate udplite per network namespace
Next Topic: [PATCH][for -mm] Fix and Enhancements for memory cgroup [0/6] intro
Goto Forum:
  


Current Time: Sat Sep 13 00:46:15 GMT 2025

Total time taken to generate the page: 0.12722 seconds