aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/dn_fib.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-08-11 02:11:47 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:54:28 -0400
commitabcab268303c22d24fc89fedd35d82271d20f5da (patch)
tree2add5b99164734899d92ad37d89b1ded91c219bf /include/net/dn_fib.h
parent1b43af5480c351dbcb2eef478bafe179cbeb6e83 (diff)
[DECNET]: Increase number of possible routing tables to 2^32
Increase the number of possible routing tables to 2^32 by replacing the fixed sized array of pointers by a hash table and replacing iterations over all possible table IDs by hash table walking. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dn_fib.h')
-rw-r--r--include/net/dn_fib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/dn_fib.h b/include/net/dn_fib.h
index cd9c3782f838..d97aa10c463f 100644
--- a/include/net/dn_fib.h
+++ b/include/net/dn_fib.h
@@ -94,6 +94,7 @@ struct dn_fib_node {
94 94
95 95
96struct dn_fib_table { 96struct dn_fib_table {
97 struct hlist_node hlist;
97 u32 n; 98 u32 n;
98 99
99 int (*insert)(struct dn_fib_table *t, struct rtmsg *r, 100 int (*insert)(struct dn_fib_table *t, struct rtmsg *r,
@@ -177,8 +178,6 @@ static inline void dn_fib_res_put(struct dn_fib_res *res)
177 fib_rule_put(res->r); 178 fib_rule_put(res->r);
178} 179}
179 180
180extern struct dn_fib_table *dn_fib_tables[];
181
182#else /* Endnode */ 181#else /* Endnode */
183 182
184#define dn_fib_init() do { } while(0) 183#define dn_fib_init() do { } while(0)