summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRavikiran G. Thirumalai <kiran@in.ibm.com>2003-01-06 22:50:02 -0800
committerDavid S. Miller <davem@kernel.bkbits.net>2003-01-06 22:50:02 -0800
commit2326102001b402bfc360c88bbcc159222bca9635 (patch)
tree10f5ce597dde186d839c1f27501397170a3f20e1 /include
parenta001d116962587c99b8067d368248572b32a2679 (diff)
[IPV4]: Convert rt_cache_state to use kmalloc_percpu
Diffstat (limited to 'include')
-rw-r--r--include/net/route.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 593311a57fca..ba15b5140798 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -102,7 +102,11 @@ struct rt_cache_stat
unsigned int gc_ignored;
unsigned int gc_goal_miss;
unsigned int gc_dst_overflow;
-} ____cacheline_aligned_in_smp;
+};
+
+extern struct rt_cache_stat *rt_cache_stat;
+#define RT_CACHE_STAT_INC(field) \
+ (per_cpu_ptr(rt_cache_stat, smp_processor_id())->field++)
extern struct ip_rt_acct *ip_rt_acct;