Date: Thu, 21 Jan 2016 14:04:02 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294500 - stable/10/sys/net Message-ID: <201601211404.u0LE42R8040381@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Thu Jan 21 14:04:02 2016 New Revision: 294500 URL: https://svnweb.freebsd.org/changeset/base/294500 Log: MFC r292602: Simplify bringup order by removing a SYSINIT making it a static list initialization. Obtained from: p4 @180384,180385 Modified: stable/10/sys/net/if_llatbl.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/net/if_llatbl.c ============================================================================== --- stable/10/sys/net/if_llatbl.c Thu Jan 21 12:59:54 2016 (r294499) +++ stable/10/sys/net/if_llatbl.c Thu Jan 21 14:04:02 2016 (r294500) @@ -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"); @@ -367,15 +366,6 @@ lla_rt_output(struct rt_msghdr *rtm, str 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601211404.u0LE42R8040381>