[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>
This commit is contained in:

committed by
David S. Miller

parent
dbb50165b5
commit
7b1a74fdbb
@@ -1956,11 +1956,7 @@ out:
|
||||
|
||||
/* Fix more generic FIB names for init later */
|
||||
|
||||
#ifdef CONFIG_IP_MULTIPLE_TABLES
|
||||
struct fib_table * fib_hash_init(u32 id)
|
||||
#else
|
||||
struct fib_table * __init fib_hash_init(u32 id)
|
||||
#endif
|
||||
struct fib_table *fib_hash_init(u32 id)
|
||||
{
|
||||
struct fib_table *tb;
|
||||
struct trie *t;
|
||||
|
Reference in New Issue
Block a user