Date: Sun, 17 Apr 2016 16:29:24 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r298151 - projects/vnet/sys/kern Message-ID: <201604171629.u3HGTOnM082215@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Sun Apr 17 16:29:24 2016 New Revision: 298151 URL: https://svnweb.freebsd.org/changeset/base/298151 Log: With trying to handle interfaces last on teardown make sure the hooks are still there though the consumers (e.g., if_enc(4)) will have to detach their hhook consumers before the protocols detach the registration. This change just defines from which point on hhooks are available to be used. Currently SI_SUB_INIT_IF sounds good. Sponsored by: The FreeBSD Foundation Modified: projects/vnet/sys/kern/kern_hhook.c Modified: projects/vnet/sys/kern/kern_hhook.c ============================================================================== --- projects/vnet/sys/kern/kern_hhook.c Sun Apr 17 16:27:03 2016 (r298150) +++ projects/vnet/sys/kern/kern_hhook.c Sun Apr 17 16:29:24 2016 (r298151) @@ -510,7 +510,7 @@ hhook_vnet_uninit(const void *unused __u /* * When a vnet is created and being initialised, init the V_hhook_vhead_list. */ -VNET_SYSINIT(hhook_vnet_init, SI_SUB_PROTO_BEGIN, SI_ORDER_ANY, +VNET_SYSINIT(hhook_vnet_init, SI_SUB_INIT_IF, SI_ORDER_FIRST, hhook_vnet_init, NULL); /* @@ -518,5 +518,5 @@ VNET_SYSINIT(hhook_vnet_init, SI_SUB_PRO * points to clean up on vnet tear down, but in case the KPI is misused, * provide a function to clean up and free memory for a vnet being destroyed. */ -VNET_SYSUNINIT(hhook_vnet_uninit, SI_SUB_PROTO_BEGIN, SI_ORDER_ANY, +VNET_SYSUNINIT(hhook_vnet_uninit, SI_SUB_INIT_IF, SI_ORDER_FIRST, hhook_vnet_uninit, NULL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604171629.u3HGTOnM082215>