summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-20 13:55:33 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-20 13:55:33 +0000
commitd32e9e9901044568408ca4ef06315cfca9176870 (patch)
tree231030d22abc459d39df8da66a6762eaed12da1f /sys/netinet6
parentd1ac98198b3b8168b7cd32bf3434b7dfdacb6f44 (diff)
downloadFreeBSD-src-d32e9e9901044568408ca4ef06315cfca9176870.zip
FreeBSD-src-d32e9e9901044568408ca4ef06315cfca9176870.tar.gz
Garbage collect vnet module registrations that have neither constructors
nor destructors, as there's no actual work to do. In most cases, the constructors weren't needed because of the existing protocol initialization functions run by net_init_domain() as part of VNET_MOD_NET, or they were eliminated when support for static initialization of virtualized globals was added. Garbage collect dependency references to modules without constructors or destructors, notably VNET_MOD_INET and VNET_MOD_INET6. Reviewed by: bz Approved by: re (vimage blanket)
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_input.c20
-rw-r--r--sys/netinet6/mld6.c1
2 files changed, 0 insertions, 21 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 1fc3090..af79042 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -162,26 +162,6 @@ static int ip6_hopopts_input(u_int32_t *, u_int32_t *, struct mbuf **, int *);
static struct mbuf *ip6_pullexthdr(struct mbuf *, size_t, int);
#endif
-#ifdef VIMAGE
-/* XXX only has to stay for .vmi_dependson elsewhere. */
-static void vnet_inet6_register(void);
-
-static const vnet_modinfo_t vnet_inet6_modinfo = {
- .vmi_id = VNET_MOD_INET6,
- .vmi_name = "inet6",
- .vmi_dependson = VNET_MOD_INET /* XXX revisit - TCP/UDP needs this? */
-};
-
-static void
-vnet_inet6_register(void)
-{
-
- vnet_mod_register(&vnet_inet6_modinfo);
-}
-
-SYSINIT(inet6, SI_SUB_PROTO_BEGIN, SI_ORDER_FIRST, vnet_inet6_register, 0);
-#endif
-
/*
* IP6 initialization: fill in IP6 protocol switch table.
* All protocols not implemented in kernel go to raw IP6 protocol handler.
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 4b69da2..f47671e 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -3253,7 +3253,6 @@ vnet_mld_idetach(const void *unused __unused)
static vnet_modinfo_t vnet_mld_modinfo = {
.vmi_id = VNET_MOD_MLD,
.vmi_name = "mld",
- .vmi_dependson = VNET_MOD_INET6,
.vmi_iattach = vnet_mld_iattach,
.vmi_idetach = vnet_mld_idetach
};
OpenPOWER on IntegriCloud