After lwkt_waitmsg/lwkt_waitport splitting, the second parameter of
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Jul 2007 11:59:03 +0000 (11:59 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Jul 2007 11:59:03 +0000 (11:59 +0000)
lwkt_waitport() is tsleep flags instead of msg pointer.

sys/net/route.c
sys/netinet/tcp_subr.c

index 5232166..7c1e513 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.30 2007/05/24 20:51:21 dillon Exp $
+ * $DragonFly: src/sys/net/route.c,v 1.31 2007/07/06 11:59:03 sephe Exp $
  */
 
 #include "opt_inet.h"
@@ -174,7 +174,7 @@ rtable_service_loop(void *dummy __unused)
        struct netmsg *netmsg;
        thread_t td = curthread;
 
-       while ((netmsg = lwkt_waitport(&td->td_msgport, NULL)) != NULL) {
+       while ((netmsg = lwkt_waitport(&td->td_msgport, 0)) != NULL) {
                netmsg->nm_dispatch(netmsg);
        }
 }
index 68427da..cbb8a58 100644 (file)
@@ -65,7 +65,7 @@
  *
  *     @(#)tcp_subr.c  8.2 (Berkeley) 5/24/95
  * $FreeBSD: src/sys/netinet/tcp_subr.c,v 1.73.2.31 2003/01/24 05:11:34 sam Exp $
- * $DragonFly: src/sys/netinet/tcp_subr.c,v 1.58 2007/05/23 08:57:09 dillon Exp $
+ * $DragonFly: src/sys/netinet/tcp_subr.c,v 1.59 2007/07/06 11:59:03 sephe Exp $
  */
 
 #include "opt_compat.h"
@@ -379,7 +379,7 @@ tcpmsg_service_loop(void *dummy)
 {
        struct netmsg *msg;
 
-       while ((msg = lwkt_waitport(&curthread->td_msgport, NULL))) {
+       while ((msg = lwkt_waitport(&curthread->td_msgport, 0))) {
                do {
                        logtcp(rxmsg);
                        msg->nm_dispatch(msg);