diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-01-15 02:14:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:15 -0500 |
commit | 7f9b80529b8a2ad8b3273b15fb444a0e34b760a9 (patch) | |
tree | ba6e38934797952a472970ee97d2131a6a6f29bb /include/net | |
parent | d717a9a62049a03e85c3c2dd3399416eeb34a8be (diff) |
[IPV4]: fib hash|trie initialization
Initialization of the slab cache's should be done when IP is
initialized to make sure of available memory, and that code can be
marked __init.
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_fib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 025b225181e1..f580542f08ed 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -231,8 +231,9 @@ extern int fib_sync_down(__be32 local, struct net_device *dev, int force); | |||
231 | extern int fib_sync_up(struct net_device *dev); | 231 | extern int fib_sync_up(struct net_device *dev); |
232 | extern __be32 __fib_res_prefsrc(struct fib_result *res); | 232 | extern __be32 __fib_res_prefsrc(struct fib_result *res); |
233 | 233 | ||
234 | /* Exported by fib_hash.c */ | 234 | /* Exported by fib_{hash|trie}.c */ |
235 | extern struct fib_table *fib_hash_init(u32 id); | 235 | extern void fib_hash_init(void); |
236 | extern struct fib_table *fib_hash_table(u32 id); | ||
236 | 237 | ||
237 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) | 238 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) |
238 | { | 239 | { |