In route_init(), call netmsg_service_port_init(); mainly to register route
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 Oct 2008 12:22:24 +0000 (12:22 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 Oct 2008 12:22:24 +0000 (12:22 +0000)
thread's msgport for netmsg_service_sync(), since route threads also do
network output during arp input processing.

sys/net/route.c

index c610ef4..7971cae 100644 (file)
@@ -64,7 +64,7 @@
  *
  *     @(#)route.c     8.3 (Berkeley) 1/9/95
  * $FreeBSD: src/sys/net/route.c,v 1.59.2.10 2003/01/17 08:04:00 ru Exp $
- * $DragonFly: src/sys/net/route.c,v 1.39 2008/10/19 03:25:31 sephe Exp $
+ * $DragonFly: src/sys/net/route.c,v 1.40 2008/10/20 12:22:24 sephe Exp $
  */
 
 #include "opt_inet.h"
@@ -155,6 +155,7 @@ route_init(void)
                lwkt_create(rtable_service_loop, NULL, &rtd, NULL,
                            0, cpu, "rtable_cpu %d", cpu);
                rt_ports[cpu] = &rtd->td_msgport;
+               netmsg_service_port_init(rt_ports[cpu]);
        }
 }