if: Defer if_start to netisr instead of ifnet for further processing
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 23 Sep 2012 09:04:48 +0000 (17:04 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 23 Sep 2012 09:18:10 +0000 (17:18 +0800)
sys/net/if.c

index cd92df4..c1ee384 100644 (file)
@@ -245,7 +245,7 @@ if_start_ipifunc(void *arg)
 
        crit_enter();
        if (lmsg->ms_flags & MSGF_DONE)
-               lwkt_sendmsg(ifnet_portfn(mycpuid), lmsg);
+               lwkt_sendmsg(netisr_portfn(mycpuid), lmsg);
        crit_exit();
 }
 
@@ -351,7 +351,7 @@ check:
                crit_enter();
                if (lmsg->ms_flags & MSGF_DONE) { /* XXX necessary? */
                        logifstart(sched, ifp);
-                       lwkt_sendmsg(ifnet_portfn(mycpuid), lmsg);
+                       lwkt_sendmsg(netisr_portfn(mycpuid), lmsg);
                }
                crit_exit();
        }