git: network - Fix MP races in GIF

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Sep 15 17:44:12 PDT 2010


commit 61fdea7fa9d317f95b344bdcd9f27b4486a49dbd
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list