Date: Wed, 22 Apr 2009 13:09:53 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 160933 for review Message-ID: <200904221309.n3MD9rpY037566@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=160933 Change 160933 by zec@zec_amdx2 on 2009/04/22 13:09:16 Unbreak netgraph vnet module registration. Affected files ... .. //depot/projects/vimage/src/sys/netgraph/ng_base.c#54 edit Differences ... ==== //depot/projects/vimage/src/sys/netgraph/ng_base.c#54 (text+ko) ==== @@ -3102,6 +3102,11 @@ switch (event) { case MOD_LOAD: /* Initialize everything. */ +#ifndef VIMAGE_GLOBALS + vnet_mod_register(&vnet_netgraph_modinfo); +#else + vnet_netgraph_iattach(NULL); +#endif /* !VIMAGE */ NG_WORKLIST_LOCK_INIT(); mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL, MTX_DEF); @@ -3135,11 +3140,6 @@ break; } } -#ifndef VIMAGE_GLOBALS - vnet_mod_register(&vnet_netgraph_modinfo); -#else - vnet_netgraph_iattach(NULL); -#endif /* !VIMAGE */ break; case MOD_UNLOAD: /* You can't unload it because an interface may be using it. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904221309.n3MD9rpY037566>