From: [EMAIL PROTECTED] (Eric W. Biederman)
Date: Sat, 08 Sep 2007 15:15:34 -0600
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
- Registration functions to support initializing per network
namespace data when a network namespaces is
Paul E. McKenney [EMAIL PROTECTED] writes:
I know I cannot use get_net for the reference in in /proc because
otherwise I could not release the network namespace unless I was to
unmount the filesystem, which is not a desirable property.
I think I can change the idiom to:
struct net
Krishna Kumar2 [EMAIL PROTECTED] writes:
Eric W. Biederman wrote on 09/09/2007 02:45:34 AM:
Hi Eric,
+static int register_pernet_operations(struct list_head *list,
+ struct pernet_operations *ops)
+{
snip
+out:
+ return error;
+
+out_undo:
+ /* If I have an error
Eric W. Biederman wrote:
[snip]
--- /dev/null
+++ b/include/net/net_namespace.h
@@ -0,0 +1,68 @@
+/*
+ * Operations on the network namespace
+ */
+#ifndef __NET_NET_NAMESPACE_H
+#define __NET_NET_NAMESPACE_H
+
+#include asm/atomic.h
+#include linux/workqueue.h
+#include linux/list.h
Pavel Emelyanov [EMAIL PROTECTED] writes:
Eric W. Biederman wrote:
[snip]
--- /dev/null
+++ b/include/net/net_namespace.h
@@ -0,0 +1,68 @@
+/*
+ * Operations on the network namespace
+ */
+#ifndef __NET_NET_NAMESPACE_H
+#define __NET_NET_NAMESPACE_H
+
+#include asm/atomic.h
Eric W. Biederman a écrit :
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
- Registration functions to support initializing per network
namespace data when a network namespaces is created or destroyed.
- struct net. The network namespace data
Paul E. McKenney [EMAIL PROTECTED] writes:
On Sat, Sep 08, 2007 at 03:15:34PM -0600, Eric W. Biederman wrote:
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
- Registration functions to support initializing per network
namespace data when a
Eric Dumazet [EMAIL PROTECTED] writes:
Nice work Eric !
Thanks.
struct net is not a very descriptive name imho, why dont stick ns or
namespace somewhere ?
My fingers rebelled, and struct net seems to be sufficiently descriptive.
However that is a cosmetic detail and if there is a general
On Sun, Sep 09, 2007 at 04:04:45AM -0600, Eric W. Biederman wrote:
Paul E. McKenney [EMAIL PROTECTED] writes:
On Sat, Sep 08, 2007 at 03:15:34PM -0600, Eric W. Biederman wrote:
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
-
Eric W. Biederman wrote on 09/09/2007 02:45:34 AM:
Hi Eric,
+static int register_pernet_operations(struct list_head *list,
+ struct pernet_operations *ops)
+{
snip
+out:
+ return error;
+
+out_undo:
+ /* If I have an error cleanup all namespaces I initialized */
+
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
- Registration functions to support initializing per network
namespace data when a network namespaces is created or destroyed.
- struct net. The network namespace data structure.
This structure
On Sat, Sep 08, 2007 at 03:15:34PM -0600, Eric W. Biederman wrote:
This is the basic infrastructure needed to support network
namespaces. This infrastructure is:
- Registration functions to support initializing per network
namespace data when a network namespaces is created or destroyed.
12 matches
Mail list logo