xfrm: removes a superfluous check and add a statistic
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 28 Dec 2012 08:06:28 +0000 (16:06 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 7 Jan 2013 10:18:58 +0000 (11:18 +0100)
Remove the check if x->km.state equal to XFRM_STATE_VALID in
xfrm_state_check_expire(), which will be done before call
xfrm_state_check_expire().

add a LINUX_MIB_XFRMOUTSTATEINVALID statistic to record the
outbound error due to invalid xfrm state.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

No differences found