diff options
author | Robert Olsson <Robert.Olsson@data.slu.se> | 2005-06-21 15:43:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-21 15:43:18 -0400 |
commit | 19baf839ff4a8daa1f2a7400897094fc18e4f5e9 (patch) | |
tree | 719e1b64a4fedc4fc028874b5562553c7a524473 /net/ipv4/af_inet.c | |
parent | 18b504e25fd617bee8830d2cdcaff7fb7b5931bb (diff) |
[IPV4]: Add LC-Trie FIB lookup algorithm.
Signed-off-by: Robert Olsson <Robert.Olsson@data.slu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 03942f133944..658e7977924d 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1119,6 +1119,10 @@ module_init(inet_init); | |||
1119 | #ifdef CONFIG_PROC_FS | 1119 | #ifdef CONFIG_PROC_FS |
1120 | extern int fib_proc_init(void); | 1120 | extern int fib_proc_init(void); |
1121 | extern void fib_proc_exit(void); | 1121 | extern void fib_proc_exit(void); |
1122 | #ifdef CONFIG_IP_FIB_TRIE | ||
1123 | extern int fib_stat_proc_init(void); | ||
1124 | extern void fib_stat_proc_exit(void); | ||
1125 | #endif | ||
1122 | extern int ip_misc_proc_init(void); | 1126 | extern int ip_misc_proc_init(void); |
1123 | extern int raw_proc_init(void); | 1127 | extern int raw_proc_init(void); |
1124 | extern void raw_proc_exit(void); | 1128 | extern void raw_proc_exit(void); |
@@ -1139,11 +1143,19 @@ static int __init ipv4_proc_init(void) | |||
1139 | goto out_udp; | 1143 | goto out_udp; |
1140 | if (fib_proc_init()) | 1144 | if (fib_proc_init()) |
1141 | goto out_fib; | 1145 | goto out_fib; |
1146 | #ifdef CONFIG_IP_FIB_TRIE | ||
1147 | if (fib_stat_proc_init()) | ||
1148 | goto out_fib_stat; | ||
1149 | #endif | ||
1142 | if (ip_misc_proc_init()) | 1150 | if (ip_misc_proc_init()) |
1143 | goto out_misc; | 1151 | goto out_misc; |
1144 | out: | 1152 | out: |
1145 | return rc; | 1153 | return rc; |
1146 | out_misc: | 1154 | out_misc: |
1155 | #ifdef CONFIG_IP_FIB_TRIE | ||
1156 | fib_stat_proc_exit(); | ||
1157 | out_fib_stat: | ||
1158 | #endif | ||
1147 | fib_proc_exit(); | 1159 | fib_proc_exit(); |
1148 | out_fib: | 1160 | out_fib: |
1149 | udp4_proc_exit(); | 1161 | udp4_proc_exit(); |