diff options
-rw-r--r-- | include/net/ip_fib.h | 6 | ||||
-rw-r--r-- | net/ipv4/fib_frontend.c | 8 | ||||
-rw-r--r-- | net/ipv4/fib_trie.c | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 819d61ca25cb..08b46b8c3031 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -228,9 +228,9 @@ extern int fib_sync_up(struct net_device *dev); | |||
228 | extern __be32 __fib_res_prefsrc(struct fib_result *res); | 228 | extern __be32 __fib_res_prefsrc(struct fib_result *res); |
229 | extern void fib_select_multipath(const struct flowi *flp, struct fib_result *res); | 229 | extern void fib_select_multipath(const struct flowi *flp, struct fib_result *res); |
230 | 230 | ||
231 | /* Exported by fib_{hash|trie}.c */ | 231 | /* Exported by fib_trie.c */ |
232 | extern void fib_hash_init(void); | 232 | extern void fib_trie_init(void); |
233 | extern struct fib_table *fib_hash_table(u32 id); | 233 | extern struct fib_table *fib_trie_table(u32 id); |
234 | 234 | ||
235 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) | 235 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) |
236 | { | 236 | { |
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 930768ba49af..2a49c061b34c 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -51,11 +51,11 @@ static int __net_init fib4_rules_init(struct net *net) | |||
51 | { | 51 | { |
52 | struct fib_table *local_table, *main_table; | 52 | struct fib_table *local_table, *main_table; |
53 | 53 | ||
54 | local_table = fib_hash_table(RT_TABLE_LOCAL); | 54 | local_table = fib_trie_table(RT_TABLE_LOCAL); |
55 | if (local_table == NULL) | 55 | if (local_table == NULL) |
56 | return -ENOMEM; | 56 | return -ENOMEM; |
57 | 57 | ||
58 | main_table = fib_hash_table(RT_TABLE_MAIN); | 58 | main_table = fib_trie_table(RT_TABLE_MAIN); |
59 | if (main_table == NULL) | 59 | if (main_table == NULL) |
60 | goto fail; | 60 | goto fail; |
61 | 61 | ||
@@ -82,7 +82,7 @@ struct fib_table *fib_new_table(struct net *net, u32 id) | |||
82 | if (tb) | 82 | if (tb) |
83 | return tb; | 83 | return tb; |
84 | 84 | ||
85 | tb = fib_hash_table(id); | 85 | tb = fib_trie_table(id); |
86 | if (!tb) | 86 | if (!tb) |
87 | return NULL; | 87 | return NULL; |
88 | h = id & (FIB_TABLE_HASHSZ - 1); | 88 | h = id & (FIB_TABLE_HASHSZ - 1); |
@@ -1086,5 +1086,5 @@ void __init ip_fib_init(void) | |||
1086 | register_netdevice_notifier(&fib_netdev_notifier); | 1086 | register_netdevice_notifier(&fib_netdev_notifier); |
1087 | register_inetaddr_notifier(&fib_inetaddr_notifier); | 1087 | register_inetaddr_notifier(&fib_inetaddr_notifier); |
1088 | 1088 | ||
1089 | fib_hash_init(); | 1089 | fib_trie_init(); |
1090 | } | 1090 | } |
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 16d589c70a92..73cb98475ce6 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -1916,7 +1916,7 @@ int fib_table_dump(struct fib_table *tb, struct sk_buff *skb, | |||
1916 | return skb->len; | 1916 | return skb->len; |
1917 | } | 1917 | } |
1918 | 1918 | ||
1919 | void __init fib_hash_init(void) | 1919 | void __init fib_trie_init(void) |
1920 | { | 1920 | { |
1921 | fn_alias_kmem = kmem_cache_create("ip_fib_alias", | 1921 | fn_alias_kmem = kmem_cache_create("ip_fib_alias", |
1922 | sizeof(struct fib_alias), | 1922 | sizeof(struct fib_alias), |
@@ -1929,8 +1929,7 @@ void __init fib_hash_init(void) | |||
1929 | } | 1929 | } |
1930 | 1930 | ||
1931 | 1931 | ||
1932 | /* Fix more generic FIB names for init later */ | 1932 | struct fib_table *fib_trie_table(u32 id) |
1933 | struct fib_table *fib_hash_table(u32 id) | ||
1934 | { | 1933 | { |
1935 | struct fib_table *tb; | 1934 | struct fib_table *tb; |
1936 | struct trie *t; | 1935 | struct trie *t; |