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
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, ...
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]
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
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
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
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
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
+++
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 +
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
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
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
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
+++
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)
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
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
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
17 matches
Mail list logo