diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:22:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:25 -0500 |
commit | 7b1a74fdbb9ec38a9780620fae25519fde4b21ee (patch) | |
tree | a8405f9a3e30cf6750d60aff16e555d4901ce57f /include/net/ip_fib.h | |
parent | dbb50165b512f6c9b7aae10af73ae5b6d811f4d0 (diff) |
[NETNS]: Refactor fib initialization so it can handle multiple namespaces.
This patch makes the fib to be initialized as a subsystem for the
network namespaces. The code does not handle several namespaces yet,
so in case of a creation of a network namespace, the
creation/initialization will not occur.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index cbff18d748dd..338d3ed10c31 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -186,7 +186,8 @@ static inline void fib_select_default(const struct flowi *flp, struct fib_result | |||
186 | } | 186 | } |
187 | 187 | ||
188 | #else /* CONFIG_IP_MULTIPLE_TABLES */ | 188 | #else /* CONFIG_IP_MULTIPLE_TABLES */ |
189 | extern int __init fib4_rules_init(void); | 189 | extern int __net_init fib4_rules_init(struct net *net); |
190 | extern void __net_exit fib4_rules_exit(struct net *net); | ||
190 | 191 | ||
191 | #ifdef CONFIG_NET_CLS_ROUTE | 192 | #ifdef CONFIG_NET_CLS_ROUTE |
192 | extern u32 fib_rules_tclass(struct fib_result *res); | 193 | extern u32 fib_rules_tclass(struct fib_result *res); |