[XFRM]: Fix aevent timer.
authorJamal Hadi Salim <hadi@cyberus.ca>
Fri, 14 Apr 2006 22:03:05 +0000 (15:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Apr 2006 22:03:05 +0000 (15:03 -0700)
commit2717096ab41eacdbf07352dca6826b59470eb39a
tree9282ac7ffd15bbd41f438201ef76f6deaa23c90a
parent6c97e72a162648eaf7c401cfc139493cefa6bed2
[XFRM]: Fix aevent timer.

Send aevent immediately if we have sent nothing since last timer and
this is the first packet.

Fixes a corner case when packet threshold is very high, the timer low
and a very low packet rate input which is bursty.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_state.c