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)
commitbb65a9cb953fdfe9c507e8dbb6c4ec2540484bd3
tree43c6b5d97e05f485be22918d96450159b1d9b239
parent483f777266f5da205459c290994bd3cda5f1f6bc
xfrm: removes a superfluous check and add a statistic

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>
include/uapi/linux/snmp.h
net/xfrm/xfrm_output.c
net/xfrm/xfrm_proc.c
net/xfrm/xfrm_state.c