PERFORCE change 160933 for review

Marko Zec zec at FreeBSD.org
Wed Apr 22 13:09:55 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=160933

Change 160933 by zec at 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. */


More information about the p4-projects mailing list