From: Masahide NAKAMURA Date: Tue, 25 Dec 2007 00:00:09 +0000 (-0800) Subject: [XFRM]: Fix outbound statistics. X-Git-Tag: MMI-PSA29.97-13-9~37648^2~920 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b15c4bcd15741b31019379298edfca28dc78029d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [XFRM]: Fix outbound statistics. Signed-off-by: Masahide NAKAMURA Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index d73003cb2c0e..c1ba63efd7cb 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -43,17 +43,23 @@ static int xfrm_output_one(struct sk_buff *skb, int err) do { err = xfrm_state_check_space(x, skb); - if (err) + if (err) { + XFRM_INC_STATS(LINUX_MIB_XFRMOUTERROR); goto error_nolock; + } err = x->outer_mode->output(x, skb); - if (err) + if (err) { + XFRM_INC_STATS(LINUX_MIB_XFRMOUTSTATEMODEERROR); goto error_nolock; + } spin_lock_bh(&x->lock); err = xfrm_state_check_expire(x); - if (err) + if (err) { + XFRM_INC_STATS(LINUX_MIB_XFRMOUTSTATEEXPIRED); goto error; + } if (x->type->flags & XFRM_TYPE_REPLAY_PROT) { XFRM_SKB_CB(skb)->seq = ++x->replay.oseq;