mib: add netns/mib.h file
authorPavel Emelyanov <xemul@openvz.org>
Fri, 18 Jul 2008 11:01:24 +0000 (04:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 11:01:24 +0000 (04:01 -0700)
The only structure declared within is the netns_mib, which will
carry all our mibs within. I didn't put the mibs in the existing
netns_xxx structures to make it possible to mark this one as
properly aligned and get in a separate "read-mostly" cache-line.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
include/net/netns/mib.h [new file with mode: 0644]

index f90443045c70467cbfd854845806b78d69e872e5..3855620b78a9760081c590d44bf9794f0e993390 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/list.h>
 
 #include <net/netns/core.h>
+#include <net/netns/mib.h>
 #include <net/netns/unix.h>
 #include <net/netns/packet.h>
 #include <net/netns/ipv4.h>
@@ -52,6 +53,7 @@ struct net {
        struct sock             *rtnl;                  /* rtnetlink socket */
 
        struct netns_core       core;
+       struct netns_mib        mib;
        struct netns_packet     packet;
        struct netns_unix       unx;
        struct netns_ipv4       ipv4;
diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h
new file mode 100644 (file)
index 0000000..9f4b31e
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __NETNS_MIB_H__
+#define __NETNS_MIB_H__
+
+#include <net/snmp.h>
+
+struct netns_mib {
+};
+
+#endif