Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpnet Initialize suckets before domains s...



details:   https://anonhg.NetBSD.org/src/rev/fab04db90b73
branches:  trunk
changeset: 747877:fab04db90b73
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Oct 04 13:24:58 2009 +0000

description:
Initialize suckets before domains since some domains install timers
which take softnet_lock and might run before the lock is actually
initialized.  Also, soinit() itself already calls soinit2(), so no
need to call it twice.

diffstat:

 sys/rump/librump/rumpnet/rump_net.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r d5efec3a9d3e -r fab04db90b73 sys/rump/librump/rumpnet/rump_net.c
--- a/sys/rump/librump/rumpnet/rump_net.c       Sun Oct 04 10:44:31 2009 +0000
+++ b/sys/rump/librump/rumpnet/rump_net.c       Sun Oct 04 13:24:58 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_net.c,v 1.9 2009/09/16 13:30:41 pooka Exp $       */
+/*     $NetBSD: rump_net.c,v 1.10 2009/10/04 13:24:58 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_net.c,v 1.9 2009/09/16 13:30:41 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_net.c,v 1.10 2009/10/04 13:24:58 pooka Exp $");
 
 #include <sys/param.h>
 
@@ -52,6 +52,7 @@
 {
 
        mbinit();
+       soinit();
 
        domaininit(false);
        /*
@@ -66,8 +67,5 @@
 
        rump_net_virtif_init();
 
-       soinit();
-       soinit2();
-
        rump_netisr_init();
 }



Home | Main Index | Thread Index | Old Index