From owner-svn-src-projects@freebsd.org Mon May 16 10:34:56 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 D71B0B3CA8B for ; Mon, 16 May 2016 10:34:56 +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 A2F101013; Mon, 16 May 2016 10:34:56 +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 u4GAYtmq037678; Mon, 16 May 2016 10:34:55 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4GAYtMH037672; Mon, 16 May 2016 10:34:55 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201605161034.u4GAYtMH037672@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Mon, 16 May 2016 10:34:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r299935 - in projects/vnet/sys: net netgraph 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.22 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: Mon, 16 May 2016 10:34:56 -0000 Author: bz Date: Mon May 16 10:34:55 2016 New Revision: 299935 URL: https://svnweb.freebsd.org/changeset/base/299935 Log: Remove some of the (pseudo) interfaces as late as we can so that they can still be used by higher level protocols. We cannot do this for all of them given some of them do use the upper layer protocols to tunnel packets and once these protocols are "shut down" these interfaces will do no good anymore. gif(4) is such an example. Sponsored by: The FreeBSD Foundation Modified: projects/vnet/sys/net/if_bridge.c projects/vnet/sys/net/if_edsc.c projects/vnet/sys/net/if_lagg.c projects/vnet/sys/net/if_vlan.c projects/vnet/sys/netgraph/ng_eiface.c projects/vnet/sys/netgraph/ng_iface.c Modified: projects/vnet/sys/net/if_bridge.c ============================================================================== --- projects/vnet/sys/net/if_bridge.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/net/if_bridge.c Mon May 16 10:34:55 2016 (r299935) @@ -541,7 +541,7 @@ vnet_bridge_uninit(const void *unused __ V_bridge_cloner = NULL; BRIDGE_LIST_LOCK_DESTROY(); } -VNET_SYSUNINIT(vnet_bridge_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY, +VNET_SYSUNINIT(vnet_bridge_uninit, SI_SUB_PSEUDO, SI_ORDER_ANY, vnet_bridge_uninit, NULL); static int Modified: projects/vnet/sys/net/if_edsc.c ============================================================================== --- projects/vnet/sys/net/if_edsc.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/net/if_edsc.c Mon May 16 10:34:55 2016 (r299935) @@ -336,7 +336,7 @@ vnet_edsc_uninit(const void *unused __un */ if_clone_detach(V_edsc_cloner); } -VNET_SYSUNINIT(vnet_edsc_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY, +VNET_SYSUNINIT(vnet_edsc_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, vnet_edsc_uninit, NULL); /* Modified: projects/vnet/sys/net/if_lagg.c ============================================================================== --- projects/vnet/sys/net/if_lagg.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/net/if_lagg.c Mon May 16 10:34:55 2016 (r299935) @@ -271,7 +271,7 @@ vnet_lagg_uninit(const void *unused __un if_clone_detach(V_lagg_cloner); LAGG_LIST_LOCK_DESTROY(); } -VNET_SYSUNINIT(vnet_lagg_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY, +VNET_SYSUNINIT(vnet_lagg_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, vnet_lagg_uninit, NULL); static int Modified: projects/vnet/sys/net/if_vlan.c ============================================================================== --- projects/vnet/sys/net/if_vlan.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/net/if_vlan.c Mon May 16 10:34:55 2016 (r299935) @@ -796,7 +796,7 @@ vnet_vlan_uninit(const void *unused __un if_clone_detach(V_vlan_cloner); } -VNET_SYSUNINIT(vnet_vlan_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, +VNET_SYSUNINIT(vnet_vlan_uninit, SI_SUB_INIT_IF, SI_ORDER_FIRST, vnet_vlan_uninit, NULL); #endif Modified: projects/vnet/sys/netgraph/ng_eiface.c ============================================================================== --- projects/vnet/sys/netgraph/ng_eiface.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/netgraph/ng_eiface.c Mon May 16 10:34:55 2016 (r299935) @@ -679,5 +679,5 @@ vnet_ng_eiface_uninit(const void *unused delete_unrhdr(V_ng_eiface_unit); } -VNET_SYSUNINIT(vnet_ng_eiface_uninit, SI_SUB_PSEUDO, SI_ORDER_ANY, +VNET_SYSUNINIT(vnet_ng_eiface_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, vnet_ng_eiface_uninit, NULL); Modified: projects/vnet/sys/netgraph/ng_iface.c ============================================================================== --- projects/vnet/sys/netgraph/ng_iface.c Mon May 16 10:03:57 2016 (r299934) +++ projects/vnet/sys/netgraph/ng_iface.c Mon May 16 10:34:55 2016 (r299935) @@ -786,5 +786,5 @@ vnet_ng_iface_uninit(const void *unused) delete_unrhdr(V_ng_iface_unit); } -VNET_SYSUNINIT(vnet_ng_iface_uninit, SI_SUB_PSEUDO, SI_ORDER_ANY, +VNET_SYSUNINIT(vnet_ng_iface_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, vnet_ng_iface_uninit, NULL);