diff options
author | bz <bz@FreeBSD.org> | 2015-12-22 14:57:04 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2015-12-22 14:57:04 +0000 |
commit | dd1fad44ccfad5a3f15427bcecc129ea6a6155f7 (patch) | |
tree | 7eb7692bff88f6b405eab50184084486a401f2ac /sys/net/if_llatbl.c | |
parent | 982684552ba3216d04c7b4322ffbc5f7dbd7d6cd (diff) | |
download | FreeBSD-src-dd1fad44ccfad5a3f15427bcecc129ea6a6155f7.zip FreeBSD-src-dd1fad44ccfad5a3f15427bcecc129ea6a6155f7.tar.gz |
Simplify bringup order by removing a SYSINIT making it a static list
initialization.
Mfp4 @180384,180385:
There is no need for a dedicated SYSINIT here. The
list can be initialized statically.
Sponsored by: CK Software GmbH
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: gnn
Differential Revision: https://reviews.freebsd.org/D4528
Diffstat (limited to 'sys/net/if_llatbl.c')
-rw-r--r-- | sys/net/if_llatbl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index f2749e5..b0450b3 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -62,11 +62,10 @@ __FBSDID("$FreeBSD$"); MALLOC_DEFINE(M_LLTABLE, "lltable", "link level address tables"); -static VNET_DEFINE(SLIST_HEAD(, lltable), lltables); +static VNET_DEFINE(SLIST_HEAD(, lltable), lltables) = + SLIST_HEAD_INITIALIZER(lltables); #define V_lltables VNET(lltables) -static void vnet_lltable_init(void); - struct rwlock lltable_rwlock; RW_SYSINIT(lltable_rwlock, &lltable_rwlock, "lltable_rwlock"); @@ -740,15 +739,6 @@ lla_rt_output(struct rt_msghdr *rtm, struct rt_addrinfo *info) return (error); } -static void -vnet_lltable_init() -{ - - SLIST_INIT(&V_lltables); -} -VNET_SYSINIT(vnet_lltable_init, SI_SUB_PSEUDO, SI_ORDER_FIRST, - vnet_lltable_init, NULL); - #ifdef DDB struct llentry_sa { struct llentry base; |