Commit aee289ba authored by David S. Miller's avatar David S. Miller

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

Conflicts:
	net/ipv6/route.c

Pull in 'net' again to get the revert of Thomas's change
which introduced regressions.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 42ae66c8 e8803b6c
...@@ -302,8 +302,6 @@ extern void fib6_run_gc(unsigned long expires, ...@@ -302,8 +302,6 @@ extern void fib6_run_gc(unsigned long expires,
extern void fib6_gc_cleanup(void); extern void fib6_gc_cleanup(void);
extern int fib6_init(void); extern int fib6_init(void);
extern int fib6_init_late(void);
extern void fib6_cleanup_late(void);
#ifdef CONFIG_IPV6_MULTIPLE_TABLES #ifdef CONFIG_IPV6_MULTIPLE_TABLES
extern int fib6_rules_init(void); extern int fib6_rules_init(void);
......
...@@ -1697,25 +1697,21 @@ int __init fib6_init(void) ...@@ -1697,25 +1697,21 @@ int __init fib6_init(void)
ret = register_pernet_subsys(&fib6_net_ops); ret = register_pernet_subsys(&fib6_net_ops);
if (ret) if (ret)
goto out_kmem_cache_create; goto out_kmem_cache_create;
ret = __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib,
NULL);
if (ret)
goto out_unregister_subsys;
out: out:
return ret; return ret;
out_unregister_subsys:
unregister_pernet_subsys(&fib6_net_ops);
out_kmem_cache_create: out_kmem_cache_create:
kmem_cache_destroy(fib6_node_kmem); kmem_cache_destroy(fib6_node_kmem);
goto out; goto out;
} }
int __init fib6_init_late(void)
{
return __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib,
NULL);
}
void fib6_cleanup_late(void)
{
rtnl_unregister(PF_INET6, RTM_GETROUTE);
}
void fib6_gc_cleanup(void) void fib6_gc_cleanup(void)
{ {
unregister_pernet_subsys(&fib6_net_ops); unregister_pernet_subsys(&fib6_net_ops);
......
...@@ -2974,13 +2974,9 @@ int __init ip6_route_init(void) ...@@ -2974,13 +2974,9 @@ int __init ip6_route_init(void)
if (ret) if (ret)
goto out_kmem_cache; goto out_kmem_cache;
ret = fib6_init();
if (ret)
goto out_dst_entries;
ret = register_pernet_subsys(&ipv6_inetpeer_ops); ret = register_pernet_subsys(&ipv6_inetpeer_ops);
if (ret) if (ret)
goto out_fib6_init; goto out_dst_entries;
ret = register_pernet_subsys(&ip6_route_net_ops); ret = register_pernet_subsys(&ip6_route_net_ops);
if (ret) if (ret)
...@@ -2999,13 +2995,13 @@ int __init ip6_route_init(void) ...@@ -2999,13 +2995,13 @@ int __init ip6_route_init(void)
init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev; init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev;
init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev);
#endif #endif
ret = fib6_init_late(); ret = fib6_init();
if (ret) if (ret)
goto out_register_subsys; goto out_register_subsys;
ret = xfrm6_init(); ret = xfrm6_init();
if (ret) if (ret)
goto out_fib6_init_late; goto out_fib6_init;
ret = fib6_rules_init(); ret = fib6_rules_init();
if (ret) if (ret)
...@@ -3028,14 +3024,12 @@ int __init ip6_route_init(void) ...@@ -3028,14 +3024,12 @@ int __init ip6_route_init(void)
fib6_rules_cleanup(); fib6_rules_cleanup();
xfrm6_init: xfrm6_init:
xfrm6_fini(); xfrm6_fini();
out_fib6_init_late: out_fib6_init:
fib6_cleanup_late(); fib6_gc_cleanup();
out_register_subsys: out_register_subsys:
unregister_pernet_subsys(&ip6_route_net_ops); unregister_pernet_subsys(&ip6_route_net_ops);
out_register_inetpeer: out_register_inetpeer:
unregister_pernet_subsys(&ipv6_inetpeer_ops); unregister_pernet_subsys(&ipv6_inetpeer_ops);
out_fib6_init:
fib6_gc_cleanup();
out_dst_entries: out_dst_entries:
dst_entries_destroy(&ip6_dst_blackhole_ops); dst_entries_destroy(&ip6_dst_blackhole_ops);
out_kmem_cache: out_kmem_cache:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment