Skip to content

Commit

Permalink
mib: add netns/mib.h file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jul 18, 2008
1 parent a60f28f commit 852566f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/net_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions include/net/netns/mib.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef __NETNS_MIB_H__
#define __NETNS_MIB_H__

#include <net/snmp.h>

struct netns_mib {
};

#endif

0 comments on commit 852566f

Please sign in to comment.