netns xfrm: fix "ip xfrm state|policy count" misreport
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 23 Jan 2010 13:37:10 +0000 (13:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Jan 2010 07:10:42 +0000 (23:10 -0800)
commite071041be037eca208b62b84469a06bdfc692bea
treec78506a4a582555959ffeb94980cb0cd7f86eab5
parent2ca4231de7f7a5fd7137bac152030ba71f15e8c3
netns xfrm: fix "ip xfrm state|policy count" misreport

"ip xfrm state|policy count" report SA/SP count from init_net,
not from netns of caller process.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c