]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netns xfrm: add struct xfrm_state::xs_net
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 26 Nov 2008 01:15:16 +0000 (17:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 01:15:16 +0000 (17:15 -0800)
commit673c09be457bb23aa0eaaa79804cbb342210d195
tree9948d1859bbcd07316f5cea239b86845d6061570
parentd62ddc21b674b5ac1466091ff3fbf7baa53bc92c
netns xfrm: add struct xfrm_state::xs_net

To avoid unnecessary complications with passing netns around.

* set once, very early after allocating
* once set, never changes

For a while create every xfrm_state in init_net.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/ipcomp.c
net/ipv6/ipcomp6.c
net/key/af_key.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c