diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 20:14:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 20:14:31 -0500 |
commit | d62ddc21b674b5ac1466091ff3fbf7baa53bc92c (patch) | |
tree | 13e57abe023b5258b168e7f9108015a78493e481 /net/xfrm/xfrm_state.c | |
parent | c95839693d2a6612af7f75ad877012eba2f69757 (diff) |
netns xfrm: add netns boilerplate
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index cd9d9171ded7..268fe3f9e498 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -2080,7 +2080,7 @@ error: | |||
2080 | 2080 | ||
2081 | EXPORT_SYMBOL(xfrm_init_state); | 2081 | EXPORT_SYMBOL(xfrm_init_state); |
2082 | 2082 | ||
2083 | void __init xfrm_state_init(void) | 2083 | int __net_init xfrm_state_init(struct net *net) |
2084 | { | 2084 | { |
2085 | unsigned int sz; | 2085 | unsigned int sz; |
2086 | 2086 | ||
@@ -2094,6 +2094,11 @@ void __init xfrm_state_init(void) | |||
2094 | xfrm_state_hmask = ((sz / sizeof(struct hlist_head)) - 1); | 2094 | xfrm_state_hmask = ((sz / sizeof(struct hlist_head)) - 1); |
2095 | 2095 | ||
2096 | INIT_WORK(&xfrm_state_gc_work, xfrm_state_gc_task); | 2096 | INIT_WORK(&xfrm_state_gc_work, xfrm_state_gc_task); |
2097 | return 0; | ||
2098 | } | ||
2099 | |||
2100 | void xfrm_state_fini(struct net *net) | ||
2101 | { | ||
2097 | } | 2102 | } |
2098 | 2103 | ||
2099 | #ifdef CONFIG_AUDITSYSCALL | 2104 | #ifdef CONFIG_AUDITSYSCALL |