route.c (f0cd91a68acdc9b49d7f6738b514a426da627649) | route.c (bfe5d834195b3089b8846577311340376cc0f450) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * ROUTE - implementation of the IP router. 7 * 8 * Version: $Id: route.c,v 1.103 2002/01/12 07:44:09 davem Exp $ --- 230 unchanged lines hidden (view full) --- 239 240static struct rt_hash_bucket *rt_hash_table; 241static unsigned rt_hash_mask; 242static int rt_hash_log; 243static unsigned int rt_hash_rnd; 244 245static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); 246#define RT_CACHE_STAT_INC(field) \ | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * ROUTE - implementation of the IP router. 7 * 8 * Version: $Id: route.c,v 1.103 2002/01/12 07:44:09 davem Exp $ --- 230 unchanged lines hidden (view full) --- 239 240static struct rt_hash_bucket *rt_hash_table; 241static unsigned rt_hash_mask; 242static int rt_hash_log; 243static unsigned int rt_hash_rnd; 244 245static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); 246#define RT_CACHE_STAT_INC(field) \ |
247 (per_cpu(rt_cache_stat, raw_smp_processor_id()).field++) | 247 (__raw_get_cpu_var(rt_cache_stat).field++) |
248 249static int rt_intern_hash(unsigned hash, struct rtable *rth, 250 struct rtable **res); 251 252static unsigned int rt_hash_code(u32 daddr, u32 saddr) 253{ 254 return (jhash_2words(daddr, saddr, rt_hash_rnd) 255 & rt_hash_mask); --- 2946 unchanged lines hidden --- | 248 249static int rt_intern_hash(unsigned hash, struct rtable *rth, 250 struct rtable **res); 251 252static unsigned int rt_hash_code(u32 daddr, u32 saddr) 253{ 254 return (jhash_2words(daddr, saddr, rt_hash_rnd) 255 & rt_hash_mask); --- 2946 unchanged lines hidden --- |