]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f2afe220ec467bde0c0a84b49abd07ca0e217c6
tree43c6b5d97e05f485be22918d96450159b1d9b239
parent25651485ba64ab022cbba361fa8d9038cf5ce19a
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