aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_hash.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:22:17 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:25 -0500
commit7b1a74fdbb9ec38a9780620fae25519fde4b21ee (patch)
treea8405f9a3e30cf6750d60aff16e555d4901ce57f /net/ipv4/fib_hash.c
parentdbb50165b512f6c9b7aae10af73ae5b6d811f4d0 (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 'net/ipv4/fib_hash.c')
-rw-r--r--net/ipv4/fib_hash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c
index 8de21bc4947a..694a072d8090 100644
--- a/net/ipv4/fib_hash.c
+++ b/net/ipv4/fib_hash.c
@@ -746,11 +746,7 @@ static int fn_hash_dump(struct fib_table *tb, struct sk_buff *skb, struct netlin
746 return skb->len; 746 return skb->len;
747} 747}
748 748
749#ifdef CONFIG_IP_MULTIPLE_TABLES 749struct fib_table *fib_hash_init(u32 id)
750struct fib_table * fib_hash_init(u32 id)
751#else
752struct fib_table * __init fib_hash_init(u32 id)
753#endif
754{ 750{
755 struct fib_table *tb; 751 struct fib_table *tb;
756 752