Permalink
Browse files

vlan: Dispatch mbuf to be sent to physical interface's start cpu

  • Loading branch information...
1 parent 8ca6684 commit 7550ec2d5dd765f51464344585f212b10acb2a98 Sepherosa Ziehau committed Sep 23, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 sys/net/vlan/if_vlan.c
View
@@ -515,7 +515,6 @@ vlan_start(struct ifnet *ifp)
for (;;) {
struct netmsg_packet *nmp;
- struct lwkt_port *port;
m = ifq_dequeue(&ifp->if_snd, NULL);
if (m == NULL)
@@ -551,8 +550,8 @@ vlan_start(struct ifnet *ifp)
nmp->nm_packet = m;
nmp->base.lmsg.u.ms_resultp = ifp_p;
- port = netisr_portfn(ifp_p->if_index % ncpus /* XXX */);
- lwkt_sendmsg(port, &nmp->base.lmsg);
+ lwkt_sendmsg(netisr_portfn(ifp_p->if_start_cpuid(ifp_p)),
+ &nmp->base.lmsg);
ifp->if_opackets++;
}
}

0 comments on commit 7550ec2

Please sign in to comment.