]> err.no Git - linux-2.6/blobdiff - net/ipv4/route.c
[PATCH] netfilter: fix build error due to missing has_bridge_parent macro
[linux-2.6] / net / ipv4 / route.c
index f2e82afc15b301653e789d6a90f42fa53b034f26..d82c242ea7049b7c84aaf03f71ae0dbc38f86c0c 100644 (file)
@@ -241,7 +241,8 @@ static int                  rt_hash_log;
 static unsigned int            rt_hash_rnd;
 
 static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
-#define RT_CACHE_STAT_INC(field) (__get_cpu_var(rt_cache_stat).field++)
+#define RT_CACHE_STAT_INC(field) \
+       (per_cpu(rt_cache_stat, raw_smp_processor_id()).field++)
 
 static int rt_intern_hash(unsigned hash, struct rtable *rth,
                                struct rtable **res);