From owner-svn-src-projects@freebsd.org Sat Apr 9 12:13:46 2016 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91D6EB08FA1 for ; Sat, 9 Apr 2016 12:13:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63D0C1F32; Sat, 9 Apr 2016 12:13:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u39CDj2g044338; Sat, 9 Apr 2016 12:13:45 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u39CDjT2044337; Sat, 9 Apr 2016 12:13:45 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201604091213.u39CDjT2044337@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Sat, 9 Apr 2016 12:13:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r297743 - projects/vnet/sys/kern X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 12:13:46 -0000 Author: bz Date: Sat Apr 9 12:13:45 2016 New Revision: 297743 URL: https://svnweb.freebsd.org/changeset/base/297743 Log: There is no need to use SI_SUB_MBUF for hhoks. Move them to PROTO_BEGIN. 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 Sat Apr 9 12:05:23 2016 (r297742) +++ projects/vnet/sys/kern/kern_hhook.c Sat Apr 9 12:13:45 2016 (r297743) @@ -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_MBUF, SI_ORDER_FIRST, +VNET_SYSINIT(hhook_vnet_init, SI_SUB_PROTO_BEGIN, SI_ORDER_ANY, hhook_vnet_init, NULL); /* @@ -518,5 +518,5 @@ VNET_SYSINIT(hhook_vnet_init, SI_SUB_MBU * 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_MBUF, SI_ORDER_ANY, +VNET_SYSUNINIT(hhook_vnet_uninit, SI_SUB_PROTO_BEGIN, SI_ORDER_ANY, hhook_vnet_uninit, NULL);