git: network - Fix MP races in GIF

看板DFBSD_commit作者時間15年前 (2010/09/16 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 61fdea7fa9d317f95b344bdcd9f27b4486a49dbd Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Sep 15 17:41:31 2010 -0700 network - Fix MP races in GIF * GIF used a single route cache across all CPUs causing races. In addition GIF did not clean out the cache when destroying an interface or changing the address family. * Change the single route cache entry to an array[SMP_MAXCPU] and also separate out the inet4 and inet6 route cache entries. Summary of changes: sys/net/gif/if_gif.c | 26 ++++++++++++++++++++++++-- sys/net/gif/if_gif.h | 11 ++--------- sys/netinet/in_gif.c | 22 +++++++++++----------- sys/netinet6/in6_gif.c | 25 +++++++++++++------------ 4 files changed, 50 insertions(+), 34 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/61fdea7fa9d317f95b344bdcd9f27b4486a49dbd -- DragonFly BSD source repository
文章代碼(AID): #1CaMnIM- (DFBSD_commit)