xfrm: slightly optimise xfrm_input
commitdc0565ce6e34be06730312e79b226b7408a543c8
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 24 Apr 2015 08:49:31 +0000 (24 16:49 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 24 Apr 2015 10:17:16 +0000 (24 12:17 +0200)
treef6c42ccbc1a1ef431ff970b231ba5ea6fe22cd66
parentf31e8d4f7b44092b6b2ab3a6b1d4079836b6955a
xfrm: slightly optimise xfrm_input

Check x->km.state with XFRM_STATE_ACQ only when state is not
XFRM_STAT_VALID, not everytime

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