network - Fix MP races in GIF
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Sep 2010 00:41:31 +0000 (17:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Sep 2010 00:41:31 +0000 (17:41 -0700)
commit61fdea7fa9d317f95b344bdcd9f27b4486a49dbd
tree859c6955d9b0fbdf50ae11718d65b347e4dde1eb
parent219b867caca29333d5f47e28a3f4d9077d91cb27
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.
sys/net/gif/if_gif.c
sys/net/gif/if_gif.h
sys/netinet/in_gif.c
sys/netinet6/in6_gif.c