Date: Fri, 28 Nov 2008 01:26:35 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 153679 for review Message-ID: <200811280126.mAS1QZX9039824@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=153679 Change 153679 by zec@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) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811280126.mAS1QZX9039824>