Skip to content

Commit

Permalink
if: Defer if_start to netisr instead of ifnet for further processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepherosa Ziehau committed Sep 23, 2012
1 parent e3f2143 commit ff5fbdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/net/if.c
Expand Up @@ -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();
}

Expand Down Expand Up @@ -351,7 +351,7 @@ if_start_dispatch(netmsg_t msg)
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();
}
Expand Down

0 comments on commit ff5fbdd

Please sign in to comment.