PERFORCE change 153679 for review
Marko Zec
zec at FreeBSD.org
Thu Nov 27 17:26:37 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=153679
Change 153679 by zec at zec_tca51 on 2008/11/28 01:25:55
Enter struct vnet_netgraph (not used at this point).
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/netgraph/netgraph.h#14 edit
.. //depot/projects/vimage-commit2/src/sys/netgraph/ng_base.c#15 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/netgraph/netgraph.h#14 (text+ko) ====
@@ -1186,6 +1186,7 @@
/* Hash related definitions */
#define NG_ID_HASH_SIZE 128 /* most systems wont need even this many */
+#define NG_NAME_HASH_SIZE 128 /* most systems wont need even this many */
/* Virtualization macros */
#define INIT_VNET_NETGRAPH(vnet) \
@@ -1194,6 +1195,16 @@
#define VNET_NETGRAPH(sym) VSYM(vnet_netgraph, sym)
+struct vnet_netgraph {
+ LIST_HEAD(, ng_node) _ng_ID_hash[NG_ID_HASH_SIZE];
+ LIST_HEAD(, ng_node) _ng_name_hash[NG_NAME_HASH_SIZE];
+ LIST_HEAD(, ng_node) _ng_nodelist;
+ ng_ID_t _nextID;
+ struct unrhdr *_ng_iface_unit;
+ struct unrhdr *_ng_eiface_unit;
+ struct unrhdr *_ng_wormhole_unit;
+};
+
/* Symbol translation macros */
#define V_nextID VNET_NETGRAPH(nextID)
#define V_ng_ID_hash VNET_NETGRAPH(ng_ID_hash)
==== //depot/projects/vimage-commit2/src/sys/netgraph/ng_base.c#15 (text+ko) ====
@@ -183,7 +183,6 @@
} \
} while (0)
-#define NG_NAME_HASH_SIZE 128 /* most systems wont need even this many */
static LIST_HEAD(, ng_node) ng_name_hash[NG_NAME_HASH_SIZE];
static struct mtx ng_namehash_mtx;
#define NG_NAMEHASH(NAME, HASH) \
More information about the p4-projects
mailing list