git: ethernet: Add ether_demux(), which will send the packet to

看板DFBSD_commit作者時間14年前 (2011/07/24 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 48242f4767c5268dbf0a23b3be42fafb34d7e25f Author: Sepherosa Ziehau <sephe@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
文章代碼(AID): #1EAz51dj (DFBSD_commit)