Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78356
b: refs/heads/master
c: d63bddb
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Jan 28, 2008
1 parent 005d3b4 commit df4d9b5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a3e55d68ec5baac578bf32ba67607088c763657
refs/heads/master: d63bddbe90c4fd924b2155ca92a879393d856170
2 changes: 1 addition & 1 deletion trunk/include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ extern void fib6_run_gc(unsigned long dummy);

extern void fib6_gc_cleanup(void);

extern void fib6_init(void);
extern int fib6_init(void);

extern void fib6_rules_init(void);
extern void fib6_rules_cleanup(void);
Expand Down
14 changes: 11 additions & 3 deletions trunk/net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,16 +1473,24 @@ void fib6_run_gc(unsigned long dummy)
spin_unlock_bh(&fib6_gc_lock);
}

void __init fib6_init(void)
int __init fib6_init(void)
{
int ret;
fib6_node_kmem = kmem_cache_create("fib6_nodes",
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
NULL);

fib6_tables_init();

__rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib);
ret = __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib);
if (ret)
goto out_kmem_cache_create;
out:
return ret;

out_kmem_cache_create:
kmem_cache_destroy(fib6_node_kmem);
goto out;
}

void fib6_gc_cleanup(void)
Expand Down

0 comments on commit df4d9b5

Please sign in to comment.