git: kernel - Fix localhost packet misordering

看板DFBSD_commit作者時間14年前 (2011/11/10 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 392cd266cf0fd6bc128fba0cd2b0cf1f757f5628 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Nov 3 22:25:31 2011 -0700 kernel - Fix localhost packet misordering * netisr thread ports are based on IPIs, but when we enable asynch socket writes a user thread which gets moved between cpus sending async netmsgs while doing so can result in the netisr receiving those messages out of order, corrupting the data stream. * Add TDF_FORCE_SPINPORT to allow the netisr threads to implement their message ports as spinports instead of threadports, which guarantees message ordering. Summary of changes: sys/kern/lwkt_thread.c | 2 +- sys/net/if.c | 3 ++- sys/net/netisr.c | 4 ++-- sys/sys/thread.h | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/392cd266cf0fd6bc128fba0cd2b0cf1f757f5628 -- DragonFly BSD source repository
文章代碼(AID): #1EkpVR_R (DFBSD_commit)