git: ethernet: Add ether_demux(), which will send the packet to the correct netisr
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sun Jul 24 00:32:25 PDT 2011
commit 48242f4767c5268dbf0a23b3be42fafb34d7e25f
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sun Jul 24 15:24:34 2011 +0800
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().
Summary of changes:
sys/net/if_ethersubr.c | 34 ++++++++++++++++++++++++++++++++++
sys/net/if_var.h | 1 +
sys/netgraph/ether/ng_ether.c | 7 +------
3 files changed, 36 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/48242f4767c5268dbf0a23b3be42fafb34d7e25f
--
DragonFly BSD source repository
More information about the Commits
mailing list