move domain list mutex initialization to earlier in the boot sequence so
statically configured modules like netgraph can call net_init_domain Noticed by: D.Rock@t-online.de (D. Rock)
This commit is contained in:
parent
2ec1dc3639
commit
28ace1bf60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119698
@ -71,6 +71,7 @@ static void pfslowtimo(void *);
|
|||||||
|
|
||||||
struct domain *domains; /* registered protocol domains */
|
struct domain *domains; /* registered protocol domains */
|
||||||
struct mtx dom_mtx; /* domain list lock */
|
struct mtx dom_mtx; /* domain list lock */
|
||||||
|
MTX_SYSINIT(domain, &dom_mtx, "domain list", MTX_DEF);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add a new protocol domain to the list of supported domains
|
* Add a new protocol domain to the list of supported domains
|
||||||
@ -130,8 +131,6 @@ domaininit(void *dummy)
|
|||||||
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
|
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
|
||||||
uma_zone_set_max(socket_zone, maxsockets);
|
uma_zone_set_max(socket_zone, maxsockets);
|
||||||
|
|
||||||
mtx_init(&dom_mtx, "domain list lock", NULL, MTX_DEF);
|
|
||||||
|
|
||||||
if (max_linkhdr < 16) /* XXX */
|
if (max_linkhdr < 16) /* XXX */
|
||||||
max_linkhdr = 16;
|
max_linkhdr = 16;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user