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 /net/ipv4/af_inet.c | |
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 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d5b8cb1dad67..40ecaae7be32 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1475,15 +1475,11 @@ static int __init ipv4_proc_init(void) | |||
1475 | goto out_tcp; | 1475 | goto out_tcp; |
1476 | if (udp4_proc_init()) | 1476 | if (udp4_proc_init()) |
1477 | goto out_udp; | 1477 | goto out_udp; |
1478 | if (fib_proc_init(&init_net)) | ||
1479 | goto out_fib; | ||
1480 | if (ip_misc_proc_init()) | 1478 | if (ip_misc_proc_init()) |
1481 | goto out_misc; | 1479 | goto out_misc; |
1482 | out: | 1480 | out: |
1483 | return rc; | 1481 | return rc; |
1484 | out_misc: | 1482 | out_misc: |
1485 | fib_proc_exit(&init_net); | ||
1486 | out_fib: | ||
1487 | udp4_proc_exit(); | 1483 | udp4_proc_exit(); |
1488 | out_udp: | 1484 | out_udp: |
1489 | tcp4_proc_exit(); | 1485 | tcp4_proc_exit(); |