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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to