[Devel] Re: [PATCH 3/14][TUN]: Introduce the tun_net structure.

2008-04-15 Thread David Miller
Pavel, please respin these patches since I applied the updated version of patches 1 and 2 which added the generic netns bits. Thanks! ___ Containers mailing list [EMAIL PROTECTED] https://lists.linux-foundation.org/mailman/listinfo/containers

[Devel] Re: [RFC][PATCH 0/4] Object creation with a specified id

2008-04-15 Thread Nadia Derbey
Nick Andrew wrote: On Fri, Apr 04, 2008 at 04:51:29PM +0200, [EMAIL PROTECTED] wrote: . echo LONG XX /proc/self/next_id next object to be created will have an id set to XX . echo LONGn X0 ... Xn-1 /proc/self/next_id next object to be created will have its ids set to XX0, ...

[Devel] Re: [PATCH 3/14][TUN]: Introduce the tun_net structure.

2008-04-15 Thread David Miller
From: Pavel Emelyanov [EMAIL PROTECTED] Date: Tue, 15 Apr 2008 14:31:45 +0400 Are you willing to look at vlans and ip tunnels (ipip, gre, sit) as well? This will be 6 sets ~7 patches each. Sure. ___ Containers mailing list [EMAIL PROTECTED]

[Devel] Re: [PATCH 3/14][TUN]: Introduce the tun_net structure.

2008-04-15 Thread Pavel Emelyanov
David Miller wrote: Pavel, please respin these patches since I applied the updated version of patches 1 and 2 which added the generic netns bits. Thank you, David! I will do it today. Are you willing to look at vlans and ip tunnels (ipip, gre, sit) as well? This will be 6 sets ~7 patches

[Devel] [PATCH 0/8 net-2.6.26] [NETNS]: namespace refcounting cleanup

2008-04-15 Thread Denis V. Lunev
Network namespace has two referrence counters: - count - use_count. The namespace is scheduled to destruction automatically when the count becomes 0. There are several SLAB objects with a pointer to a namespace on them. These objects are cleaned up during namespace stop. Some of them increment

[Devel] [PATCH 6/8 net-2.6.26] [NETNS]: Add netns refcnt debug for dst ops.

2008-04-15 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- net/ipv6/route.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 6293cb9..210a079 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2622,7 +2622,7 @@ static int

[Devel] [PATCH 4/8 net-2.6.26] [NETNS]: Add netns refcnt debug into fib_info.

2008-04-15 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- net/ipv4/fib_semantics.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index a13c847..3b83c34 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c

[Devel] [PATCH 5/8 net-2.6.26] [NETNS]: Add netns refcnt debug for inet bind buckets.

2008-04-15 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- net/ipv4/inet_hashtables.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 32ca2f8..1612184 100644 --- a/net/ipv4/inet_hashtables.c +++

[Devel] [PATCH 2/8 net-2.6.26] [NETNS]: Add netns refcnt debug for kernel sockets.

2008-04-15 Thread Denis V. Lunev
Protocol control sockets and netlink kernel sockets should not prevent the namespace stop request. They are initialized and disposed in a special way by sk_change_net/sk_release_kernel. Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- include/net/sock.h |2 +- net/core/sock.c|1 +

[Devel] [PATCH 8/8 net-2.6.26] [NETNS]: Add netns refcnt debug for network devices.

2008-04-15 Thread Denis V. Lunev
dev_set_net is called for - just allocated devices - devices moving from one namespace to another release_net has proper check inside to distinguish these cases. Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- include/linux/netdevice.h |3 ++- net/core/dev.c|2 ++ 2 files

[Devel] [PATCH 1/8 net-2.6.26] [NETNS]: Make netns refconting debug like a socket one.

2008-04-15 Thread Denis V. Lunev
Make release_net/hold_net noop for performance-hungry people. This is a debug staff and should be used in the debug mode only. Add check for net != NULL in hold/release calls. This will be required later on. Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- include/net/net_namespace.h | 44

[Devel] [PATCH 7/8 net-2.6.26] [NETNS]: Add netns refcnt debug to fib rules.

2008-04-15 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- include/net/fib_rules.h |1 + net/core/fib_rules.c|5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 34349f9..a5c6ccc 100644 --- a/include/net/fib_rules.h

[Devel] [PATCH 3/8 net-2.6.26] [NETNS]: Add netns refcnt debug for timewait buckets.

2008-04-15 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] --- net/ipv4/inet_timewait_sock.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/ipv4/inet_timewait_sock.c b/net/ipv4/inet_timewait_sock.c index a741378..ce16e9a 100644 --- a/net/ipv4/inet_timewait_sock.c +++

[Devel] Re: [PATCH 1/8 net-2.6.26] [NETNS]: Make netns refconting debug like a socket one.

2008-04-15 Thread Brian Haley
Denis V. Lunev wrote: +#ifdef NETNS_REFCNT_DEBUG static inline struct net *hold_net(struct net *net) { + if (net == NULL) + return NULL; + atomic_inc(net-use_count); return net; } This could be shrunk to: if (net)

[Devel] Re: [RFC][PATCH 0/4] Object creation with a specified id

2008-04-15 Thread Oren Laadan
Nadia Derbey wrote: Nick Andrew wrote: On Fri, Apr 04, 2008 at 04:51:29PM +0200, [EMAIL PROTECTED] wrote: . echo LONG XX /proc/self/next_id next object to be created will have an id set to XX . echo LONGn X0 ... Xn-1 /proc/self/next_id next object to be created will have its

[Devel] Re: [PATCH 1/2] eCryptfs: Introduce device handle for userspace daemon communications

2008-04-15 Thread Andrew Morton
On Tue, 15 Apr 2008 15:23:13 -0500 Michael Halcrow [EMAIL PROTECTED] wrote: Functions to facilitate reading and writing to the eCryptfs miscellaneous device handle. This will replace the netlink interface as the preferred mechanism for communicating with the userspace eCryptfs daemon. Each

[Devel] Re: [PATCH 1/2] eCryptfs: Introduce device handle for userspace daemon communications

2008-04-15 Thread Serge E. Hallyn
Quoting Andrew Morton ([EMAIL PROTECTED]): On Tue, 15 Apr 2008 15:23:13 -0500 Michael Halcrow [EMAIL PROTECTED] wrote: Functions to facilitate reading and writing to the eCryptfs miscellaneous device handle. This will replace the netlink interface as the preferred mechanism for