Skip to content

Commit

Permalink
Change SYSINIT priorities so that ip_mroute_modevent() is executed
Browse files Browse the repository at this point in the history
before vnet_mroute_init(), since vnet_mroute_init() depends on mfchashsize
tunable to be set, and that is done in in ip_mroute_modevent().
Apparently I broke that ordering with r208744 almost 2 years ago...

PR:		kern/162201
Submitted by:	Stevan Markovic (mcafee.com)
MFC after:	3 days
  • Loading branch information
gornjas committed Mar 4, 2012
1 parent 68bf971 commit 1c77929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/netinet/ip_mroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -2822,7 +2822,7 @@ vnet_mroute_init(const void *unused __unused)
callout_init(&V_bw_meter_ch, CALLOUT_MPSAFE);
}

VNET_SYSINIT(vnet_mroute_init, SI_SUB_PSEUDO, SI_ORDER_MIDDLE, vnet_mroute_init,
VNET_SYSINIT(vnet_mroute_init, SI_SUB_PSEUDO, SI_ORDER_ANY, vnet_mroute_init,
NULL);

static void
Expand Down Expand Up @@ -2945,4 +2945,4 @@ static moduledata_t ip_mroutemod = {
0
};

DECLARE_MODULE(ip_mroute, ip_mroutemod, SI_SUB_PSEUDO, SI_ORDER_ANY);
DECLARE_MODULE(ip_mroute, ip_mroutemod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE);

0 comments on commit 1c77929

Please sign in to comment.