diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-26 02:14:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 02:14:31 +0100 |
commit | d62ddc21b674b5ac1466091ff3fbf7baa53bc92c (patch) | |
tree | 13e57abe023b5258b168e7f9108015a78493e481 /net/xfrm/xfrm_state.c | |
parent | xfrm: initialise xfrm_policy_gc_work statically (diff) | |
download | linux-d62ddc21b674b5ac1466091ff3fbf7baa53bc92c.tar.xz linux-d62ddc21b674b5ac1466091ff3fbf7baa53bc92c.zip |
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: EXPORT_SYMBOL(xfrm_init_state); -void __init xfrm_state_init(void) +int __net_init xfrm_state_init(struct net *net) { unsigned int sz; @@ -2094,6 +2094,11 @@ void __init xfrm_state_init(void) xfrm_state_hmask = ((sz / sizeof(struct hlist_head)) - 1); INIT_WORK(&xfrm_state_gc_work, xfrm_state_gc_task); + return 0; +} + +void xfrm_state_fini(struct net *net) +{ } #ifdef CONFIG_AUDITSYSCALL |