summaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 66df47122..e230f45fc 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -35,13 +35,6 @@
#define RT_HASH_DIVISOR 256
-/*
- * Prevents LRU trashing, entries considered equivalent,
- * if the difference between last use times is less then this number.
- */
-#define RT_CACHE_BUBBLE_THRESHOLD (5*HZ)
-
-
#define RTO_ONLINK 0x01
#define RTO_TPROXY 0x80000000
@@ -94,8 +87,6 @@ struct rtable
#endif
};
-extern struct rtable *rt_hash_table[RT_HASH_DIVISOR];
-
struct ip_rt_acct
{
__u32 o_bytes;
@@ -105,6 +96,7 @@ struct ip_rt_acct
};
extern struct ip_rt_acct ip_rt_acct[256];
+extern rwlock_t ip_rt_acct_lock;
extern void ip_rt_init(void);
extern void ip_rt_redirect(u32 old_gw, u32 dst, u32 new_gw,