]> 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)
commitb1430228c0b76a25807800749118aa3bb1b24557
tree43c6b5d97e05f485be22918d96450159b1d9b239
parentf93e2feb661c060e2b0b70f1291917d804c99d35
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