Date: Wed, 15 Apr 2009 18:15:29 +0000 (UTC) From: Marko Zec <zec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191112 - head/sys/net Message-ID: <200904151815.n3FIFTLf050766@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zec Date: Wed Apr 15 18:15:29 2009 New Revision: 191112 URL: http://svn.freebsd.org/changeset/base/191112 Log: In the !VIMAGE_GLOBALS case, make sure not to call vnet_net_iattach() both via the vnet_mod_register() framework and then directly, but only once. Reviewed by: bz Approved by: julian (mentor) Modified: head/sys/net/if.c Modified: head/sys/net/if.c ============================================================================== --- head/sys/net/if.c Wed Apr 15 17:31:22 2009 (r191111) +++ head/sys/net/if.c Wed Apr 15 18:15:29 2009 (r191112) @@ -401,8 +401,9 @@ if_init(void *dummy __unused) #ifndef VIMAGE_GLOBALS vnet_mod_register(&vnet_net_modinfo); -#endif +#else vnet_net_iattach(NULL); +#endif IFNET_LOCK_INIT(); ifdev_setbyindex(0, make_dev(&net_cdevsw, 0, UID_ROOT, GID_WHEEL,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904151815.n3FIFTLf050766>