Re: [PATCH 1/9] network namespaces: core and device list

2006-08-16 Thread Stephen Hemminger
On Wed, 16 Aug 2006 07:46:43 -0700 Dave Hansen <[EMAIL PROTECTED]> wrote: > On Tue, 2006-08-15 at 18:48 +0400, Andrey Savochkin wrote: > > > > /* Can survive without statistics */ > > stats = kmalloc(sizeof(struct net_device_stats), GFP_KERNEL); > > if (stats) { > >

Re: [PATCH 1/9] network namespaces: core and device list

2006-08-16 Thread Dave Hansen
On Tue, 2006-08-15 at 18:48 +0400, Andrey Savochkin wrote: > > /* Can survive without statistics */ > stats = kmalloc(sizeof(struct net_device_stats), GFP_KERNEL); > if (stats) { > memset(stats, 0, sizeof(struct net_device_stats)); > - loopback

[PATCH 1/9] network namespaces: core and device list

2006-08-16 Thread Andrey Savochkin
CONFIG_NET_NS and net_namespace structure are introduced. List of network devices is made per-namespace. Each namespace gets its own loopback device. Signed-off-by: Andrey Savochkin <[EMAIL PROTECTED]> --- drivers/net/loopback.c| 69 - include/linux/init_task.h |9 ++