ethernet: Add ether_demux(), which will send the packet to the correct netisr
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 24 Jul 2011 07:24:34 +0000 (15:24 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 24 Jul 2011 07:24:34 +0000 (15:24 +0800)
commit48242f4767c5268dbf0a23b3be42fafb34d7e25f
tree78844d0ffd1caccc88df6d4c8a0f14b88d0da427
parent0e80556631dfc95b6109581eda5a9693c8f3e27d
ethernet: Add ether_demux(), which will send the packet to the correct netisr

It is intended to be used by the function which does not know whether
the current thread is the correct netisr for the ethernet packet or not.

Currently only ng_ether uses this function, which incorrectly called
ether_demux_oncpu().  The other two callers of ether_demux_oncpu() are
already on the correct netisr.

This paves the way to avoid requeuing the packet to the current netisr
in the ether_demux_oncpu().
sys/net/if_ethersubr.c
sys/net/if_var.h
sys/netgraph/ether/ng_ether.c